Only log removed commands is debug enabled

This commit is contained in:
md678685 2019-04-07 17:03:56 +01:00
parent 0d8aec7eea
commit 9d93d4db54

View File

@ -842,8 +842,10 @@ public class EssentialsPlayerListener implements Listener {
event.getCommands().removeIf(str -> shouldHideFromUser(str, user));
removedCmds.removeAll(event.getCommands());
ess.getLogger().info("Removed commands: " + removedCmds.toString());
if (ess.getSettings().isDebug()) {
removedCmds.removeAll(event.getCommands());
ess.getLogger().info("Removed commands: " + removedCmds.toString());
}
}
/**