Class CustomItems

All Implemented Interfaces:
Serializable, Cloneable, Map<String,CustomBannedItem>

public final class CustomItems extends DoubleMap<String,CustomBannedItem>
Map that contains all the custom items This is a double map (include a reversed map), for easier access of custom items names and their respective banned item.
Version:
3.1
Author:
Andross
See Also:
  • Constructor Details

    • CustomItems

      public CustomItems(@NotNull BanItem pl, @NotNull org.bukkit.command.CommandSender sender)
      This will create a new instance of custom items map, with the items from customitems.yml file. This should not be used externally, as it could create two different instance of this object. You should use BanItemAPI.load(CommandSender, File) instead.
      Parameters:
      pl - main instance
      sender - the sender who executed this command, for debug
  • Method Details

    • getFile

      @NotNull public File getFile()
      Returns:
      the "customitems.yml" file of the BanItem plugin
    • getConfig

      @NotNull public org.bukkit.configuration.file.FileConfiguration getConfig()
      Returns:
      the "customitems.yml" file configuration