Package dev.plex.banning
Class Ban
java.lang.Object
dev.plex.banning.Ban
The ban object
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
Whether the ban is active or notprivate UUID
The unique ID of the person who banned the player (can be null)private LocalDateTime
The end date for the banprivate String
Gets the id of the ban (first 8 characters of a UUID + random 6 letters)private String
The IP of the banned playerprivate String
The reason for the banprivate UUID
The unique ID of the player who was banned -
Constructor Summary
-
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
-