Class GlowBanList

java.lang.Object
net.glowstone.util.bans.JsonListFile
net.glowstone.util.bans.GlowBanList
All Implemented Interfaces:
org.bukkit.BanList

public class GlowBanList extends JsonListFile implements org.bukkit.BanList
Ban list implementation.
  • Constructor Details

    • GlowBanList

      public GlowBanList(GlowServer server, org.bukkit.BanList.Type type)
      Creates a new BanList of the given type.
      Parameters:
      server - The server this BanList belongs to.
      type - The type of BanList.
  • Method Details

    • load

      public void load()
      Description copied from class: JsonListFile
      Reloads from the file.
      Overrides:
      load in class JsonListFile
    • readEntry

      protected JsonListFile.BaseEntry readEntry(Map<String,String> object)
      Description copied from class: JsonListFile
      Deserialize an entry from JSON format.
      Specified by:
      readEntry in class JsonListFile
      Parameters:
      object - The JSON object to read from.
      Returns:
      The finished Entry.
    • save

      protected void save()
      Description copied from class: JsonListFile
      Saves to the file.
      Overrides:
      save in class JsonListFile
    • getBanEntry

      public org.bukkit.BanEntry getBanEntry(String target)
      Specified by:
      getBanEntry in interface org.bukkit.BanList
    • addBan

      public org.bukkit.BanEntry addBan(String target, String reason, Date expires, String source)
      Specified by:
      addBan in interface org.bukkit.BanList
    • getBanEntries

      public Set<org.bukkit.BanEntry> getBanEntries()
      Specified by:
      getBanEntries in interface org.bukkit.BanList
    • isBanned

      public boolean isBanned(String target)
      Specified by:
      isBanned in interface org.bukkit.BanList
    • pardon

      public void pardon(String target)
      Specified by:
      pardon in interface org.bukkit.BanList