Class BanManager

java.lang.Object
dev.plex.banning.BanManager

public class BanManager extends Object
  • Field Details

  • Constructor Details

    • BanManager

      public BanManager()
  • Method Details

    • executeBan

      public void executeBan(Ban ban)
      Adds the ban to the database
      Parameters:
      ban - The ban object
    • isBanned

      public boolean isBanned(UUID uuid)
      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

      public void unban(UUID uuid)
      Unbans a player if they have an active ban on record
      Parameters:
      uuid - The unique ID of the player
    • unban

      public void unban(String id)
      Unbans a player if they have an active ban on record
      Parameters:
      id - Custom ID of the ban
    • getActiveBans

      public List<Ban> getActiveBans()
      Gets a list of all the current bans active
      Returns:
      An arraylist of bans