Class PunishmentManager

java.lang.Object
dev.plex.PlexBase
dev.plex.punishment.PunishmentManager

public class PunishmentManager extends PlexBase
  • Field Details

  • Constructor Details

    • PunishmentManager

      public PunishmentManager()
  • Method Details

    • mergeIndefiniteBans

      public void mergeIndefiniteBans()
    • isIndefUUIDBanned

      public boolean isIndefUUIDBanned(UUID uuid)
    • isIndefIPBanned

      public boolean isIndefIPBanned(String ip)
    • isIndefUserBanned

      public boolean isIndefUserBanned(String username)
    • insertPunishment

      public void insertPunishment(PunishedPlayer player, Punishment punishment)
    • isNotEmpty

      private boolean isNotEmpty(File file)
    • isBanned

      public boolean isBanned(UUID uuid)
    • isBanned

      public boolean isBanned(PunishedPlayer player)
    • getActiveBans

      public List<Punishment> getActiveBans()
    • unban

      public void unban(Punishment punishment)
    • unban

      public void unban(UUID uuid)
    • issuePunishment

      private void issuePunishment(PunishedPlayer player, Punishment punishment)
    • doPunishment

      public void doPunishment(PunishedPlayer player, Punishment punishment)