1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-26 07:54:41 +02:00

Fix /essentials command to not show command debugging if there were no conflicts

This commit is contained in:
ementalo
2012-06-18 11:58:14 +01:00
parent cfbfd5ee46
commit 6677f75c52

View File

@@ -60,8 +60,12 @@ public class Commandessentials extends EssentialsCommand
} }
disabledCommands.append(entry.getKey()).append(" => ").append(entry.getValue()); disabledCommands.append(entry.getKey()).append(" => ").append(entry.getValue());
} }
if (disabledCommands.length() > 0) {
sender.sendMessage(_("blockList"));
sender.sendMessage(disabledCommands.toString()); sender.sendMessage(disabledCommands.toString());
} }
}
private void run_debug(final CommandSender sender, final String commandLabel, final String[] args) throws Exception private void run_debug(final CommandSender sender, final String commandLabel, final String[] args) throws Exception
{ {