mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-06 22:56:41 +02:00
Prevent kick for floating while afk & frozen
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user