1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-06 14:46:32 +02:00

Prevent kick for floating while afk & frozen

This commit is contained in:
snowleo
2011-08-27 15:43:26 +02:00
parent c784dc96c2
commit fc22c1d2a5

View File

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