Package dev.plex.banning
Class Ban
java.lang.Object
dev.plex.banning.Ban
The ban object
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether the ban is active or notprivate UUIDThe unique ID of the person who banned the player (can be null)private LocalDateTimeThe end date for the banprivate StringGets the id of the ban (first 8 characters of a UUID + random 6 letters)private StringThe IP of the banned playerprivate StringThe reason for the banprivate UUIDThe unique ID of the player who was banned -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
Gets the id of the ban (first 8 characters of a UUID + random 6 letters) -
uuid
The unique ID of the player who was banned -
banner
The unique ID of the person who banned the player (can be null) -
ip
The IP of the banned player -
reason
The reason for the ban -
endDate
The end date for the ban -
active
private boolean activeWhether the ban is active or not
-
-
Constructor Details
-
Ban
private Ban()A constructor for Morphia, can't be used -
Ban
Creates a ban object- Parameters:
uuid- The unique ID of the player being bannedbanner- The unique ID of the sender banning the playerip- The IP of the player being bannedreason- The reason for the banendDate- When the ban will expire
-
Ban
Creates a ban object- Parameters:
id- The custom ID of the banuuid- The unique ID of the player being bannedbanner- The unique ID of the sender banning the playerip- The IP of the player being bannedreason- The reason for the banendDate- When the ban will expire
-