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

@@ -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
*