Examples of disbandChannel()


Examples of com.l2jfrozen.gameserver.model.L2CommandChannel.disbandChannel()

    {
      if(activeChar.getParty().isLeader(activeChar) && activeChar.getParty().isInCommandChannel() && activeChar.getParty().getCommandChannel().getChannelLeader().equals(activeChar))
      {
        L2CommandChannel channel = activeChar.getParty().getCommandChannel();
        channel.broadcastToChannelMembers(new SystemMessage(SystemMessageId.COMMAND_CHANNEL_DISBANDED));
        channel.disbandChannel();

        channel = null;
        return true;
      }
    }
View Full Code Here

Examples of l2p.gameserver.model.L2CommandChannel.disbandChannel()

          return true;
        }
        if(activeChar.getParty().getCommandChannel().getChannelLeader() == activeChar)
        {
          L2CommandChannel channel = activeChar.getParty().getCommandChannel();
          channel.disbandChannel();
        }
        else
        {
          activeChar.sendPacket(Msg.ONLY_THE_CREATOR_OF_A_CHANNEL_CAN_USE_THE_CHANNEL_DISMISS_COMMAND);
        }
View Full Code Here

Examples of l2p.gameserver.model.L2CommandChannel.disbandChannel()

          if(channel.getParties().size() > 1)
          {
            return false;
          }
          // Закрываем СС, если в СС 1 партия и лидер нажал Quit
          channel.disbandChannel();
          return true;
        }
        L2Party party = activeChar.getParty();
        channel.removeParty(party);
        party.broadcastToPartyMembers(Msg.YOU_HAVE_QUIT_THE_COMMAND_CHANNEL);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2CommandChannel.disbandChannel()

            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
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.