mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +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
@@ -97,6 +97,13 @@ public abstract class OnlineUser extends User {
|
||||
*/
|
||||
public abstract CompletableFuture<TeleportResult> teleport(@NotNull Location location, boolean asynchronous);
|
||||
|
||||
/**
|
||||
* Returns if a player is moving (i.e. they have momentum)
|
||||
*
|
||||
* @return {@code true} if the player is moving; {@code false} otherwise
|
||||
*/
|
||||
public abstract boolean isMoving();
|
||||
|
||||
/**
|
||||
* Get the maximum number of homes this user may set
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user