Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2CommandChannel


        if (activeChar.isInParty())
        {
          if (activeChar.getParty().isLeader(activeChar)
              && activeChar.getParty().isInCommandChannel())
          {
            L2CommandChannel channel = activeChar.getParty().getCommandChannel();
            L2Party party = activeChar.getParty();
            channel.removeParty(party);

            SystemMessage sm = SystemMessage.sendString("Your party has left the CommandChannel.");
            party.broadcastToPartyMembers(sm);
            sm = SystemMessage.sendString(party.getPartyMembers().get(0).getName() +"'s party has left the CommandChannel.");
            channel.broadcastToChannelMembers(sm);
            return true;
          }
        }

        return false;
View Full Code Here


        {
          if (activeChar.getParty().isLeader(activeChar)
              && activeChar.getParty().isInCommandChannel()
              && activeChar.getParty().getCommandChannel().getChannelLeader().equals(activeChar))
          {
            L2CommandChannel channel = activeChar.getParty().getCommandChannel();

            SystemMessage sm = SystemMessage.sendString("The Command Channel was disbanded.");
            channel.broadcastToChannelMembers(sm);

            channel.disbandChannel();
            return true;
          }
        }

        return false;
View Full Code Here

    @Override
  public boolean useUserCommand(int id, L2PcInstance activeChar)
    {
        if (id != COMMAND_IDS[0]) return false;

        L2CommandChannel channel = activeChar.getParty().getCommandChannel();

        activeChar.sendMessage("================");
        activeChar.sendMessage("Command Channel Information is not fully implemented now.");
        activeChar.sendMessage("There are "+channel.getPartys().size()+" Party's in the Channel.");
        activeChar.sendMessage(channel.getMemberCount()+" Players overall.");
        activeChar.sendMessage("Leader is "+channel.getChannelLeader().getName()+".");
        activeChar.sendMessage("Partyleader, Membercount:");
        for(L2Party party : channel.getPartys())
        {
          activeChar.sendMessage(party.getPartyMembers().get(0).getName()+", "+party.getMemberCount());
        }
        activeChar.sendMessage("================");
        return true;
View Full Code Here

      if (_response == 1)
          {
        if(!requestor.getParty().isInCommandChannel())
        {
          new L2CommandChannel(requestor); // Create new CC
        }
        requestor.getParty().getCommandChannel().addParty(player.getParty());
      }
      else
          {
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.model.L2CommandChannel

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.