if(CastleManorManager.getInstance().isDisabled())
{
NpcHtmlMessage html = new NpcHtmlMessage(player, this);
html.setFile("data/html/npcdefault.htm");
html.replace("%objectId%", String.valueOf(getObjectId()));
html.replace("%npcname%", getName());
player.sendPacket(html);
}
else if(!player.isGM() // Player is not GM
&& player.isClanLeader() // Player is clan leader of clan (then he is the lord)
&& getCastle() != null && getCastle().getId() > 0 // Verification of castle