public interface Jailing extends TimedEntry
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.time.Instant> |
getCreationInstant()
Gets the
Instant this inmate was jailed, if this information was recorded. |
java.util.Optional<java.util.UUID> |
getJailer()
The
UUID of the jailer, or Optional.empty() if it was the console. |
java.lang.String |
getJailName()
The jail the player is jailed in.
|
java.util.Optional<org.spongepowered.api.world.Location<org.spongepowered.api.world.World>> |
getPreviousLocation()
The previous location of the player - which is where they will be sent to upon unjailing.
|
java.lang.String |
getReason()
The reason a player was jailed.
|
expired, getRemainingTime, isCurrentlyTicking
java.lang.String getReason()
java.lang.String getJailName()
java.util.Optional<java.util.UUID> getJailer()
UUID
of the jailer, or Optional.empty()
if it was the console.UUID
, or Optional.empty()
if it was the console.java.util.Optional<org.spongepowered.api.world.Location<org.spongepowered.api.world.World>> getPreviousLocation()
java.util.Optional<java.time.Instant> getCreationInstant()
Instant
this inmate was jailed, if this information was recorded.