Package dev.plex.punishment
Class PunishmentManager
java.lang.Object
dev.plex.PlexBase
dev.plex.punishment.PunishmentManager
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doPunishment
(PunishedPlayer player, Punishment punishment) void
insertPunishment
(PunishedPlayer player, Punishment punishment) boolean
isBanned
(PunishedPlayer player) boolean
boolean
boolean
isIndefUserBanned
(String username) boolean
isIndefUUIDBanned
(UUID uuid) private boolean
isNotEmpty
(File file) private void
issuePunishment
(PunishedPlayer player, Punishment punishment) void
void
unban
(Punishment punishment) void
-
Field Details
-
bannedIPs
-
bannedUsernames
-
bannedUUIDs
-
-
Constructor Details
-
PunishmentManager
public PunishmentManager()
-
-
Method Details
-
mergeIndefiniteBans
public void mergeIndefiniteBans() -
isIndefUUIDBanned
-
isIndefIPBanned
-
isIndefUserBanned
-
insertPunishment
-
isNotEmpty
-
isBanned
-
isBanned
-
getActiveBans
-
unban
-
unban
-
issuePunishment
-
doPunishment
-