Package net.godlycow.org.essc.api.rtp
Interface RtpRequest
public interface RtpRequest
A running RTP request. See
RtpManager.getActiveRequest(Player).-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.PlayerGets the player.Gets the request id.longGets when the request was made, in millis.org.bukkit.WorldGets the world being teleported in.longGets the warmup in seconds, 0 if none.booleanChecks if this request has a warmup.
-
Method Details
-
getRequestId
UUID getRequestId()Gets the request id.- Returns:
- the request id
-
getPlayer
org.bukkit.entity.Player getPlayer()Gets the player.- Returns:
- the player
-
getTargetWorld
org.bukkit.World getTargetWorld()Gets the world being teleported in.- Returns:
- the target world
-
getRequestTimestamp
long getRequestTimestamp()Gets when the request was made, in millis.- Returns:
- request time in millis
-
wasWarmupRequired
boolean wasWarmupRequired()Checks if this request has a warmup.- Returns:
- true if warmup required
-
getWarmupSeconds
long getWarmupSeconds()Gets the warmup in seconds, 0 if none.- Returns:
- warmup seconds
-