From f862514591e394399ee73fe483e284c92600de45 Mon Sep 17 00:00:00 2001 From: Fuzzlemann Date: Fri, 25 Aug 2017 12:21:35 +0200 Subject: [PATCH] Fix unknown command logging --- Plan/src/main/java/com/djrapitops/plan/Settings.java | 2 +- .../plan/systems/listeners/PlanCommandPreprocessListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/Settings.java b/Plan/src/main/java/com/djrapitops/plan/Settings.java index 8c153485a..8993bfd4f 100644 --- a/Plan/src/main/java/com/djrapitops/plan/Settings.java +++ b/Plan/src/main/java/com/djrapitops/plan/Settings.java @@ -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"), diff --git a/Plan/src/main/java/com/djrapitops/plan/systems/listeners/PlanCommandPreprocessListener.java b/Plan/src/main/java/com/djrapitops/plan/systems/listeners/PlanCommandPreprocessListener.java index e6af90fe9..a3b353e60 100644 --- a/Plan/src/main/java/com/djrapitops/plan/systems/listeners/PlanCommandPreprocessListener.java +++ b/Plan/src/main/java/com/djrapitops/plan/systems/listeners/PlanCommandPreprocessListener.java @@ -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) {