Package fr.andross.banitem
Class BanDatabase
java.lang.Object
fr.andross.banitem.BanDatabase
Class that contains all the maps.
- Version:
 - 3.1
 - Author:
 - Andross
 
- 
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetaItem(@NotNull String metaName, @NotNull org.bukkit.inventory.ItemStack metaItem) Try to add a meta item (BannedItem) into the map and the config file.@NotNull BlacklistGet the blacklist map.Getting an immutable set of used ban actions (BanAction).@NotNull CustomItemsGet the custom items map.@NotNull MetaItemsGet the meta items map.@NotNull StringgetName(@NotNull BannedItem bannedItem) Try to get the custom or meta item name of the item.@NotNull WhitelistGet the whitelist map.voidremoveMetaItem(@NotNull String metaItem) Try to remove the meta item with the said name. 
- 
Method Details
- 
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 @NotNull String metaName, @NotNull @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 itemmetaItem- ItemStack
 - 
removeMetaItem
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
Try to get the custom or meta item name of the item.- Parameters:
 bannedItem- The involved item- Returns:
 - the custom/meta item name of the item
 
 - 
getCustomItems
Get the custom items map.- Returns:
 - map of custom items
 
 - 
getMetaItems
Get the meta items map.- Returns:
 - map of meta items
 
 - 
getBlacklist
Get the blacklist map.- Returns:
 - map containing the blacklisted items
 
 - 
getWhitelist
Get the whitelist map.- Returns:
 - map containing the whitelisted items
 
 
 -