Package net.sf.l2j.gameserver.handler

Examples of net.sf.l2j.gameserver.handler.IVoicedCommandHandler


                break;
      case ALL:
        if (_text.startsWith("."))
        {
          StringTokenizer st = new StringTokenizer(_text);
          IVoicedCommandHandler vch;
          String command = "";
          String target = "";

          if (st.countTokens() > 1)
          {
            command = st.nextToken().substring(1);
            target = _text.substring(command.length() + 2);
            vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command);
          }
          else
          {
            command = _text.substring(1);
            if (Config.DEBUG) _log.info("Command: "+command);
            vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command);
          }
          if (vch != null)
            vch.useVoicedCommand(command, activeChar, target);
          else
          {
            if (Config.DEBUG) _log.warning("No handler registered for bypass '"+command+"'");
          }
        }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.handler.IVoicedCommandHandler

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.