Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.sendMessage()


    if (player == null)
      return;
   
    if (!getClient().getFloodProtectors().getTransaction().tryPerformAction("privatestorebuy"))
    {
      player.sendMessage("You buying items too fast.");
      return;
    }
   
    L2Object object = L2World.getInstance().findObject(_storePlayerId);
    if (object == null || !(object instanceof L2PcInstance))
View Full Code Here


        if(ach == null)
        {
          if(activeChar.isGM())
          {
            activeChar.sendMessage("The command " + command + " does not exists!");
          }

          _log.warning("No handler registered for admin command '" + command + "'");
          return;
        }
View Full Code Here

          return;
        }

        if(!AdminCommandAccessRights.getInstance().hasAccess(command, activeChar.getAccessLevel()))
        {
          activeChar.sendMessage("You don't have the access right to use this command!");
          if(Config.DEBUG)
          {
            _log.warning("Character " + activeChar.getName() + " tried to use admin command " + command + ", but doesn't have access to it!");
          }
          return;
View Full Code Here

            {
              TvT.addPlayer(activeChar, teamName);
            }
            else
            {
              activeChar.sendMessage("The event is already started. You can not join now!");
            }
          }

          else if(_command.substring(endOfId + 1).startsWith("tvt_player_leave"))
          {
View Full Code Here

            {
              TvT.removePlayer(activeChar);
            }
            else
            {
              activeChar.sendMessage("The event is already started. You can not leave now!");
            }
          }

          else if(_command.substring(endOfId+1).startsWith("dmevent_player_join"))
          {
View Full Code Here

          else if(_command.substring(endOfId+1).startsWith("dmevent_player_join"))
          {
            if(DM.is_joining())
              DM.addPlayer(activeChar);
            else
              activeChar.sendMessage("The event is already started. You can't join now!");
          }

          else if(_command.substring(endOfId+1).startsWith("dmevent_player_leave"))
          {
            if(DM.is_joining())
View Full Code Here

          else if(_command.substring(endOfId+1).startsWith("dmevent_player_leave"))
          {
            if(DM.is_joining())
              DM.removePlayer(activeChar);
            else
              activeChar.sendMessage("The event is already started. You can't leave now!");
          }
         
          else if (_command.substring(endOfId+1).startsWith("raid_player_join"))
          {
            if (Raid._joining)
View Full Code Here

          else if (_command.substring(endOfId+1).startsWith("raid_player_join"))
          {
            if (Raid._joining)
              Raid.addPlayer(activeChar);
            else
              activeChar.sendMessage("The event has already started. You cant join now!");
          }
         
          else if (_command.substring(endOfId+1).startsWith("raid_player_leave"))
          {
            if (Raid._joining)
View Full Code Here

          else if (_command.substring(endOfId+1).startsWith("raid_player_leave"))
          {
            if (Raid._joining)
              Raid.removePlayer(activeChar);
            else
              activeChar.sendMessage("The event has already started. You cant leave now!");
          }

          else if(_command.substring(endOfId+1).startsWith("ctf_player_join "))
          {
            String teamName = _command.substring(endOfId+1).substring(16);
View Full Code Here

          {
            String teamName = _command.substring(endOfId+1).substring(16);
            if(CTF.is_joining())
              CTF.addPlayer(activeChar, teamName);
            else
              activeChar.sendMessage("The event is already started. You can't join now!");
          }

          else if(_command.substring(endOfId+1).startsWith("ctf_player_leave"))
          {
            if(CTF.is_joining())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.