if(ezp.getEntityID() != player.getEntityId()){ezp.setEntityID(player.getEntityId());}
if(ezp.getCurrentLocation() == null){ezp.setCurrentLocation(event.getFrom());}
if(!PlayerWithinZoneLogic(player, ezp, playerHeight, playerPoint))
{
ezp.setIsTeleporting(true);
player.teleportTo(ezp.getCurrentLocation());
ezp.setIsTeleporting(false);
event.setTo(ezp.getCurrentLocation());
event.setCancelled(true);
}
{