Residence castle = CastleManager.getInstance().getCastleByIndex(activeChar.getClan().getHasCastle());
if(door == null || castle == null)
{
return false;
}
if(target.equals("doors") && activeChar.isClanLeader() && castle.checkIfInZone(door.getX(), door.getY()))
{
if(command.startsWith("open"))
{
door.openMe();
}