mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Prevent players starting a teleport warmup while moving
This commit is contained in:
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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user