{
if(General.config.enableRadius)
{
EpicZonePlayer ezp = General.getPlayer(player.getName());
double xsquared = point.x * point.x;
double ysquared = point.y * point.y;
double distanceFromCenter = Math.sqrt(xsquared + ysquared);
ezp.setDistanceFromCenter((int)distanceFromCenter);
if(distanceFromCenter <= General.config.mapRadius)
{
if(ezp.getPastBorder())
{
WarnPlayer(player, ezp, "You are inside the map radius border.");
ezp.setPastBorder(false);
}
return true;
}
else
{
if(EpicZones.permissions.has(player, "epiczones.ignoremapradius"))
{
if(!ezp.getPastBorder())
{
WarnPlayer(player, ezp, "You are outside the map radius border.");
ezp.setPastBorder(true);
}
return true;
}
else
{