Package dev.plex.punishment
Class PunishmentManager
java.lang.Object
dev.plex.punishment.PunishmentManager
- All Implemented Interfaces:
PlexBase
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
doPunishment
(PlexPlayer player, Punishment punishment) getBanByIP
(String ip) getIndefiniteBanByUsername
(String username) @Nullable PunishmentManager.IndefiniteBan
getIndefiniteBanByUUID
(UUID uuid) isAsyncBanned
(UUID uuid) boolean
isBanned
(PlexPlayer player) boolean
private boolean
isNotEmpty
(File file) void
issuePunishment
(PlexPlayer plexPlayer, Punishment punishment) void
void
punish
(PlexPlayer player, Punishment punishment) void
unban
(Punishment punishment) void
updateOutdatedPunishments
(PlexPlayer player)
-
Field Details
-
indefiniteBans
-
-
Constructor Details
-
PunishmentManager
public PunishmentManager()
-
-
Method Details
-
mergeIndefiniteBans
public void mergeIndefiniteBans() -
getIndefiniteBanByUUID
-
getIndefiniteBanByIP
-
getIndefiniteBanByUsername
-
issuePunishment
-
isNotEmpty
-
isAsyncBanned
-
isBanned
-
getBanByIP
-
isBanned
-
getActiveBans
-
unban
-
unban
-
updateOutdatedPunishments
-
doPunishment
-
punish
-