Package dev.plex.banning
Class BanManager
java.lang.Object
dev.plex.banning.BanManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeBan
(Ban ban) Adds the ban to the databaseGets a list of all the current bans activeboolean
Checks if the unique ID has an active ban in the databasevoid
Unbans a player if they have an active ban on recordvoid
Unbans a player if they have an active ban on record
-
Field Details
-
SELECT
- See Also:
-
INSERT
- See Also:
-
-
Constructor Details
-
BanManager
public BanManager()
-
-
Method Details
-
executeBan
Adds the ban to the database- Parameters:
ban
- The ban object
-
isBanned
Checks if the unique ID has an active ban in the database- Parameters:
uuid
- The unique ID of the player- Returns:
- true if the unique ID is banned
-
unban
Unbans a player if they have an active ban on record- Parameters:
uuid
- The unique ID of the player
-
unban
Unbans a player if they have an active ban on record- Parameters:
id
- Custom ID of the ban
-
getActiveBans
Gets a list of all the current bans active- Returns:
- An arraylist of bans
-