{
if(player == null)
{
return false;
}
ZoneManager zoneManager = ZoneManager.getInstance();
for(ForbiddenZones forbiddenZone : ForbiddenZones.values())
{
if(forbiddenZone.checkZ ? zoneManager.checkIfInZone(forbiddenZone.type, x, y, z) : zoneManager.checkIfInZone(forbiddenZone.type, x, y))
{
player.sendPacket(Msg.YOU_CANNOT_USE_MY_TELEPORTS_TO_REACH_THIS_AREA);
return false;
}
}