Package l2p.gameserver.handler

Examples of l2p.gameserver.handler.IAdminCommandHandler


      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";
          }
        }
View Full Code Here

TOP

Related Classes of l2p.gameserver.handler.IAdminCommandHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.