Fix unknown command logging

This commit is contained in:
Fuzzlemann 2017-08-25 12:21:35 +02:00
parent 78020a9018
commit f862514591
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ public enum Settings {
BUNGEE_OVERRIDE_STANDALONE_MODE("Bungee-Override.StandaloneMode"),
ANALYSIS_EXPORT("Analysis.Export.Enabled"),
SHOW_ALTERNATIVE_IP("Commands.AlternativeIP.Enabled"),
LOG_UNKNOWN_COMMANDS("DAta.Commands.LogUnknownCommands"),
LOG_UNKNOWN_COMMANDS("Data.Commands.LogUnknownCommands"),
COMBINE_COMMAND_ALIASES("Data.Commands.CombineCommandAliases"),
WRITE_NEW_LOCALE("Plugin.WriteNewLocaleFileOnStart"),

View File

@ -46,7 +46,7 @@ public class PlanCommandPreprocessListener implements Listener {
String commandName = event.getMessage().substring(1).split(" ")[0].toLowerCase();
boolean doNotLogUnknownCommands = Settings.LOG_UNKNOWN_COMMANDS.isTrue();
boolean doNotLogUnknownCommands = !Settings.LOG_UNKNOWN_COMMANDS.isTrue();
boolean combineCommandAliasesToMainCommand = Settings.COMBINE_COMMAND_ALIASES.isTrue();
if (doNotLogUnknownCommands || combineCommandAliasesToMainCommand) {