Class BanDatabase

java.lang.Object
fr.andross.banitem.BanDatabase

public final class BanDatabase extends Object
Class that contains all the maps
Version:
3.1
Author:
Andross
  • Method Details

    • getBlacklistActions

      @NotNull public Set<BanAction> getBlacklistActions()
      Getting an immutable set of used ban actions (BanAction) This is actually used to register the specific listeners for the specific actions
      Returns:
      An immutable set containing all used ban actions in the blacklist
    • addMetaItem

      public void addMetaItem(@NotNull String metaName, @NotNull org.bukkit.inventory.ItemStack metaItem)
      Try to add a meta item (BannedItem) into the map and the config file
      Parameters:
      metaName - name of the meta item
      metaItem - ItemStack
    • removeMetaItem

      public void removeMetaItem(@NotNull String metaItem)
      Try to remove the meta item with the said name. You should check if the meta item exists before calling this method
      Parameters:
      metaItem - name of the meta item
    • getName

      @NotNull public String getName(@NotNull BannedItem bannedItem)
    • getCustomItems

      @NotNull public CustomItems getCustomItems()
      Get the custom items map
      Returns:
      map of custom items
    • getMetaItems

      @NotNull public MetaItems getMetaItems()
      Get the meta items map
      Returns:
      map of meta items
    • getBlacklist

      @NotNull public Blacklist getBlacklist()
      Get the blacklist map
      Returns:
      map containing the blacklisted items
    • getWhitelist

      @NotNull public Whitelist getWhitelist()
      Get the whitelist map
      Returns:
      map containing the whitelisted items