Prevent players starting a teleport warmup while moving

This commit is contained in:
William committed 2022-08-25 12:51:11 +01:00
1 parent d6db45bc99
commit 6397d78767
5 files changed
+28 -1

No files matched your search

@@ -141,6 +141,12 @@ public class BukkitPlayer extends OnlineUser {
});
}
@Override
public boolean isMoving() {
// Get the player momentum and return if they are moving
return player.getVelocity().length() >= 0.1;
}
/**
* Send a Bukkit plugin message
*/