Omit [MobArena] on usage messages.

This commit is contained in:
garbagemule
2013-08-20 15:46:52 +02:00
parent 4ce8dcfad3
commit e7d3da4db3
@@ -86,7 +86,6 @@ public class CommandHandler implements CommandExecutor
// Otherwise, execute the command! // Otherwise, execute the command!
String[] params = trimFirstArg(args); String[] params = trimFirstArg(args);
command.execute(am, sender, params); command.execute(am, sender, params);
return true; return true;
} }
@@ -117,8 +116,8 @@ public class CommandHandler implements CommandExecutor
private void showUsage(Command cmd, CommandSender sender) { private void showUsage(Command cmd, CommandSender sender) {
CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class); CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class);
if (!plugin.has(sender, info.permission())) return; if (!plugin.has(sender, info.permission())) return;
Messenger.tell(sender, info.usage() + " " + ChatColor.YELLOW + info.desc()); sender.sendMessage(info.usage() + " " + ChatColor.YELLOW + info.desc());
} }
/** /**