mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Add an API event to get if a user is warming up to teleport
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user