Skip to content

Commit

Permalink
Merge pull request #2090 from RobaCZ/master
Browse files Browse the repository at this point in the history
Fix typo in deprecated verbose
  • Loading branch information
Kazzuk authored Feb 6, 2023
2 parents 5c8eed5 + 4addec7 commit c19e7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/plugin/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ public void registerEvents(Listener listener, Plugin plugin) {
for (Class<?> clazz = eventClass; Event.class.isAssignableFrom(clazz); clazz = clazz.getSuperclass()) {
// This loop checks for extending deprecated events
if (clazz.getAnnotation(Deprecated.class) != null) {
if (Boolean.parseBoolean(String.valueOf(this.server.getConfig("settings.deprecated-verbpse", true)))) {
if (Boolean.parseBoolean(String.valueOf(this.server.getConfig("settings.deprecated-verbose", true)))) {
this.server.getLogger().warning(this.server.getLanguage().translateString("nukkit.plugin.deprecatedEvent", plugin.getName(), clazz.getName(), listener.getClass().getName() + "." + method.getName() + "()"));
}
break;
Expand Down

0 comments on commit c19e7f4

Please sign in to comment.