Package net.sf.l2j.gameserver.model.actor.instance

Examples of net.sf.l2j.gameserver.model.actor.instance.L2BoxInstance


    {
      L2Object target = activeChar.getTarget();
      String[] players = command.split(" ");
      if (target instanceof L2BoxInstance)
      {
        L2BoxInstance box = (L2BoxInstance) target;
        if (players.length > 1)
        {
          boolean access = true;
          for (int i = 1; i < players.length; i++)
          {
            if (players[i].equals("no"))
            {
              access = false;
              continue;
            }
            box.grantAccess(players[i],access);
          }
        }
        else
        {
          try
          {
            String msg = "Access:";
            for (Object p : box.getAccess())
              msg += " "+(String)p;
            activeChar.sendMessage(msg);
          }
          catch (Exception e)
          {
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.model.actor.instance.L2BoxInstance

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.