mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-22 14:23:09 +02:00
Fix /essentials command to not show command debugging if there were no conflicts.
This commit is contained in:
@@ -57,7 +57,7 @@ public class Commandessentials extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
sender.sendMessage("Essentials " + ess.getDescription().getVersion());
|
sender.sendMessage("Essentials " + ess.getDescription().getVersion());
|
||||||
sender.sendMessage("/<command> <reload/debug>");
|
sender.sendMessage("/<command> <reload/debug>");
|
||||||
sender.sendMessage(_("blockList"));
|
|
||||||
final StringBuilder disabledCommands = new StringBuilder();
|
final StringBuilder disabledCommands = new StringBuilder();
|
||||||
for (Map.Entry<String, String> entry : ess.getAlternativeCommandsHandler().disabledCommands().entrySet())
|
for (Map.Entry<String, String> entry : ess.getAlternativeCommandsHandler().disabledCommands().entrySet())
|
||||||
{
|
{
|
||||||
@@ -66,7 +66,10 @@ public class Commandessentials extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
disabledCommands.append(entry.getKey()).append(" => ").append(entry.getValue());
|
disabledCommands.append(entry.getKey()).append(" => ").append(entry.getValue());
|
||||||
}
|
}
|
||||||
sender.sendMessage(disabledCommands.toString());
|
if (disabledCommands.length() > 0) {
|
||||||
|
sender.sendMessage(_("blockList"));
|
||||||
|
sender.sendMessage(disabledCommands.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void run_debug(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
private void run_debug(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
||||||
|
Reference in New Issue
Block a user