Modifier and Type | Interface and Description |
---|---|
static interface |
Ban.Ip
Represents a ban made on an IP.
|
static interface |
Ban.User
Represents a ban made on a user.
|
Modifier and Type | Method and Description |
---|---|
Optional<Date> |
getExpirationDate()
Gets the expiration date of this ban, if available.
|
Text.Literal |
getReason()
Get the reason for the ban.
|
Optional<CommandSource> |
getSource()
Gets the source that banned the user, if available.
|
Date |
getStartDate()
Gets the start date of the ban.
|
BanType |
getType()
Gets the type of this ban.
|
boolean |
isIndefinite()
Gets whether this ban is indefinitely long, e.g.
|
BanType getType()
Text.Literal getReason()
Date getStartDate()
Optional<CommandSource> getSource()
Optional.empty()
Optional<Date> getExpirationDate()
Optional.empty()
boolean isIndefinite()