Commands command = (Commands) comm;
if (!activeChar.getPlayerAccess().Door)
{
return false;
}
GameObject target;
switch (command)
{
case admin_open:
if (wordList.length > 1)
{
target = World.getAroundObjectById(activeChar, Integer.parseInt(wordList[1]));
}
else
{
target = activeChar.getTarget();
}
if ((target != null) && target.isDoor())
{
((DoorInstance) target).openMe();
}
else
{
activeChar.sendPacket(Msg.INVALID_TARGET);
}
break;
case admin_close:
if (wordList.length > 1)
{
target = World.getAroundObjectById(activeChar, Integer.parseInt(wordList[1]));
}
else
{
target = activeChar.getTarget();
}
if ((target != null) && target.isDoor())
{
((DoorInstance) target).closeMe();
}
else
{