Class WhitelistedWorld

java.lang.Object
fr.andross.banitem.database.items.Items
fr.andross.banitem.database.WhitelistedWorld

public final class WhitelistedWorld extends Items
Map containing all allowed items of a world
Version:
3.1.1
Author:
Andross
  • Constructor Details

    • WhitelistedWorld

      public WhitelistedWorld(@NotNull org.bukkit.World world, @Nullable List<String> messages, @Nullable List<BanAction> ignored)
      This constructor should not be used like this (as it will not been stored into the Whitelist map) Use Whitelist.createNewWhitelistedWorld(World, List, List) instead.
      Parameters:
      world - bukkit world
      messages - list of messages to send if the item is not allowed
      ignored - list of ignored actions
  • Method Details

    • addNewEntry

      public void addNewEntry(@NotNull BannedItem item, @NotNull Map<BanAction,BanActionData> map)
      This will add a new entry to the whitelist
      Parameters:
      item - banned item (BannedItem)
      map - map containing BanAction and their respective BanActionData
    • getWorld

      @NotNull public org.bukkit.World getWorld()
      Returns:
      the bukkit world
    • getMessages

      @NotNull public List<String> getMessages()
      Returns:
      list of messages, empty if none configured
    • getIgnored

      @NotNull public Set<BanAction> getIgnored()
      Returns:
      set of ignored actions, empty if none configured