Package dev.plex.banning
Class BanManager
java.lang.Object
dev.plex.banning.BanManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteBan(Ban ban) Adds the ban to the databaseGets a list of all the current bans activebooleanChecks if the unique ID has an active ban in the databasevoidUnbans a player if they have an active ban on recordvoidUnbans 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
-