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 TypeMethodDescriptionvoid
addMetaItem
(String metaName, org.bukkit.inventory.ItemStack metaItem) Try to add a meta item (BannedItem
) into the map and the config fileGet the blacklist mapGetting an immutable set of used ban actions (BanAction
) This is actually used to register the specific listeners for the specific actionsGet the custom items mapGet the meta items mapgetName
(BannedItem bannedItem) Get the whitelist mapvoid
removeMetaItem
(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
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
-
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
-