{
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)
{