Add an API event to get if a user is warming up to teleport

This commit is contained in:
William278 committed 2022-09-09 00:39:38 +03:00
1 parent ab0455c29a
commit ea808a37d2
2 files changed
+22

No files matched your search

@@ -489,4 +489,14 @@ public class TeleportManager {
return Optional.empty();
}
/**
* Returns if the player is currently warming up to teleport
*
* @param uuid the player's {@link UUID}
* @return {@code true} if the player is warming up, {@code false} otherwise
*/
public boolean isWarmingUp(@NotNull final UUID uuid) {
return currentlyOnWarmup.contains(uuid);
}
}