@Deprecated public interface Warning extends TimedEntry
Note that warnings are no longer part of the Nucleus plugin, this exists for migration purposes.
Modifier and Type | Method and Description |
---|---|
java.time.Instant |
getDate()
Deprecated.
When the warning was issued.
|
java.lang.String |
getReason()
Deprecated.
The reason for the warning.
|
java.util.Optional<java.util.UUID> |
getWarner()
Deprecated.
The
UUID of the player who issued the warning, or Optional.empty() if it was the console. |
boolean |
isExpired()
Deprecated.
Whether the warning has expired.
|
expired, getRemainingTime, isCurrentlyTicking
java.util.Optional<java.util.UUID> getWarner()
UUID
of the player who issued the warning, or Optional.empty()
if it was the console.java.time.Instant getDate()
Instant
the warning was issued.java.lang.String getReason()
boolean isExpired()
true
if so.