Package l2p.gameserver

Examples of l2p.gameserver.Announcements


    Commands command = (Commands) comm;
    if(!activeChar.getPlayerAccess().CanAnnounce)
    {
      return false;
    }
    Announcements a = Announcements.getInstance();
    switch(command)
    {
      case admin_list_announcements:
        a.listAnnouncements(activeChar);
        break;
      case admin_announce_menu:
        a.handleAnnounce(fullString, 20);
        a.listAnnouncements(activeChar);
        break;
      case admin_announce_announcements:
        for(L2Player player : L2ObjectsStorage.getAllPlayersForIterate())
        {
          a.showAnnouncements(player);
        }
        a.listAnnouncements(activeChar);
        break;
      case admin_add_announcement:
        if(wordList.length < 2)
        {
          return false;
        }
        try
        {
          String val = fullString.substring(23);
          a.addAnnouncement(val);
          a.listAnnouncements(activeChar);
        }
        catch(StringIndexOutOfBoundsException e)
        {
        }
        break;
      case admin_del_announcement:
        if(wordList.length < 2)
        {
          return false;
        }
        try
        {
          int val = new Integer(fullString.substring(23));
          a.delAnnouncement(val);
          a.listAnnouncements(activeChar);
        }
        catch(StringIndexOutOfBoundsException e)
        {
        }
        break;
      case admin_announce:
        a.handleAnnounce(fullString, 15);
        break;
      case admin_a:
        a.handleAnnounce(fullString, 8);
        break;
      case admin_crit_announce:
      case admin_c:
        if(wordList.length < 2)
        {
View Full Code Here

TOP

Related Classes of l2p.gameserver.Announcements

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.