diff --git a/proxy/src/main/java/proxy/command/CommandHelp.java b/proxy/src/main/java/proxy/command/CommandHelp.java index cf0eeb0..6555c4b 100644 --- a/proxy/src/main/java/proxy/command/CommandHelp.java +++ b/proxy/src/main/java/proxy/command/CommandHelp.java @@ -21,9 +21,9 @@ public class CommandHelp extends Command { return "[command]"; } - private static String formatCommand(Command cmd, boolean prefix) { + private static String formatCommand(Command cmd) { String args = cmd.getArgs(); - return (prefix ? Formatter.DARK_GRAY + "/" : "") + Formatter.AQUA + cmd.getName() + (args == null || args.isEmpty() ? "" : Formatter.GREEN + " " + args) + return Formatter.DARK_GRAY + "/" + Formatter.AQUA + cmd.getName() + (args == null || args.isEmpty() ? "" : Formatter.GREEN + " " + args) + Formatter.GRAY + " - " + Formatter.YELLOW + cmd.getHelp(); } @@ -31,7 +31,7 @@ public class CommandHelp extends Command { if(args.length == 0) { for(Command cmd : proxy.getCommands().values()) { if(cmd.canUse(player)) - sendMessage(player, formatCommand(cmd, player != null)); + sendMessage(player, formatCommand(cmd)); } return; } @@ -40,7 +40,7 @@ public class CommandHelp extends Command { throw new RunException("Command '%s' not found", args[0]); if(!cmd.canUse(player)) throw new RunException("Command '%s' can not be used", args[0]); - sendMessage(player, formatCommand(cmd, player != null)); + sendMessage(player, formatCommand(cmd)); } public Iterable complete(Proxy proxy, ProxyHandler player, String[] args, String[] serverMatches) {