public class TimedBan extends AbstractBan
Class TimedBan. Provides timedban functionality for the Hytale server.
java.lang.Object > AbstractBan > TimedBan
Field Summary
target
final
UUID
target
Field target.
by
final
UUID
by
Field by.
timestamp
final
Instant
timestamp
Field timestamp.
expiresOn
final
Instant
expiresOn
Field expiresOn.
timeRemaining
final
Duration
timeRemaining
Field timeRemaining.
message
final
StringBuilder
message
Field message.
object
final
JsonObject
object
Field object.
Method Detail
fromJsonObject
Method fromJsonObject.
- Parameters:
@Nonnull final JsonObjectobject
isInEffect
public
boolean
isInEffect
()
Method isInEffect.
getType
public
String
getType
()
Method getType.
getExpiresOn
public
Instant
getExpiresOn
()
Method getExpiresOn.
getDisconnectReason
public
CompletableFuture>
getDisconnectReason
(final UUID uuid)
Method getDisconnectReason.
- Parameters:
final UUIDuuid
StringBuilder
public
new
StringBuilder
("You are temporarily banned for ")
Method StringBuilder.
- Parameters:
"You are temporarily banned for"
toJsonObject
public
JsonObject
toJsonObject
()
Method toJsonObject.