Package l2p.gameserver.handler

Examples of l2p.gameserver.handler.IVoicedCommandHandler


      String command = fullcmd.split("\\s+")[0];
      String args = fullcmd.substring(command.length()).trim();
      if(command.length() > 0)
      {
        // then check for VoicedCommands
        IVoicedCommandHandler vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command);
        if(vch != null)
        {
          vch.useVoicedCommand(command, activeChar, args);
          return;
        }
      }
      activeChar.sendMessage("Wrong command");
      return;
View Full Code Here


      else if(bypass.startsWith("user_"))
      {
        String command = bypass.substring(5).trim();
        String word = command.split("\\s+")[0];
        String args = command.substring(word.length()).trim();
        IVoicedCommandHandler vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(word);
        if(vch != null)
        {
          vch.useVoicedCommand(word, activeChar, args);
        }
        else
        {
          _log.warning("Unknow voiced command '" + word + "'");
        }
View Full Code Here

TOP

Related Classes of l2p.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.