org.bukkit
public interface BanEntry
save()
method must be called to write the changes to the ban list. If this ban
entry has expired (such as from an unban) and is no longer found in the list, the save()
call will re-add it to the list, therefore banning the victim specified.Modifier and Type | Method and Description |
---|---|
Date |
getCreated()
Gets the date this ban entry was created.
|
Date |
getExpiration()
Gets the date this ban expires on, or null for no defined end date.
|
String |
getReason()
Gets the reason for this ban.
|
String |
getSource()
Gets the source of this ban.
A source is considered any String, although this is generally a player name. |
String |
getTarget()
Gets the target involved.
|
void |
save()
Saves the ban entry, overwriting any previous data in the ban list.
Saving the ban entry of an unbanned player will cause the player to be banned once again. |
void |
setCreated(Date created)
Sets the date this ban entry was created.
Use save() to save the changes. |
void |
setExpiration(Date expiration)
Sets the date this ban expires on.
|
void |
setReason(String reason)
Sets the reason for this ban.
|
void |
setSource(String source)
Sets the source of this ban.
A source is considered any String, although this is generally a player name. Use save() to save the changes. |
String getTarget()
Date getCreated()
void setCreated(Date created)
save()
to save the changes.created
- The new created date, cannot be nullString getSource()
void setSource(String source)
save()
to save the changes.source
- The new source where null values become empty stringsDate getExpiration()
void setExpiration(Date expiration)
save()
to save the changes.expiry
- The new expiration date, or null to indicate an eternityString getReason()
void setReason(String reason)
save()
to save the changes.reason
- The new reason, null values assume the implementation defaultvoid save()
Copyright © 2014. All rights reserved.