Prevent kick for floating while afk & frozen

This commit is contained in:
snowleo 2011-08-27 15:43:26 +02:00
parent 34987d6e07
commit 0543a8f8ba

View file

@ -96,7 +96,14 @@ public class EssentialsPlayerListener extends PlayerListener
to.setX(from.getX());
to.setY(from.getY());
to.setZ(from.getZ());
try
{
event.setTo(Util.getSafeDestination(to));
}
catch (Exception ex)
{
event.setTo(to);
}
return;
}