case admin_dump_commands:
out = "Commands list:\r\n";
HashMap<IAdminCommandHandler, TreeSet<String>> handlers = new HashMap<IAdminCommandHandler, TreeSet<String>>();
for(String cmd : AdminCommandHandler.getInstance().getAllCommands())
{
IAdminCommandHandler key = AdminCommandHandler.getInstance().getAdminCommandHandler(cmd);
if(!handlers.containsKey(key))
{
handlers.put(key, new TreeSet<String>(Collator.getInstance()));
}
handlers.get(key).add(cmd.replaceFirst("admin_", ""));
}
for(IAdminCommandHandler key : handlers.keySet())
{
out += "\r\n\t************** Group: " + key.getClass().getSimpleName().replaceFirst("Admin", "") + " **************\r\n";
for(String cmd : handlers.get(key))
{
out += "//" + cmd + " - \r\n";
}
}