Package fr.andross.banitem.database
Class WhitelistedWorld
java.lang.Object
fr.andross.banitem.database.items.Items
fr.andross.banitem.database.WhitelistedWorld
Map containing all allowed items of a world
- Version:
- 3.1.1
- Author:
- Andross
-
Field Summary
Fields inherited from class fr.andross.banitem.database.items.Items
customItems, items
-
Constructor Summary
ConstructorDescriptionWhitelistedWorld
(org.bukkit.World world, List<String> messages, List<BanAction> ignored) This constructor should not be used like this (as it will not been stored into the Whitelist map) UseWhitelist.createNewWhitelistedWorld(World, List, List)
instead. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewEntry
(BannedItem item, Map<BanAction, BanActionData> map) This will add a new entry to the whitelistorg.bukkit.World
getWorld()
Methods inherited from class fr.andross.banitem.database.items.Items
get, get, getAllActions, getCustomItems, getItems, getTotal
-
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) UseWhitelist.createNewWhitelistedWorld(World, List, List)
instead.- Parameters:
world
- bukkit worldmessages
- list of messages to send if the item is not allowedignored
- list of ignored actions
-
-
Method Details
-
addNewEntry
This will add a new entry to the whitelist- Parameters:
item
- banned item (BannedItem
)map
- map containingBanAction
and their respectiveBanActionData
-
getWorld
@NotNull public org.bukkit.World getWorld()- Returns:
- the bukkit world
-
getMessages
- Returns:
- list of messages, empty if none configured
-
getIgnored
- Returns:
- set of ignored actions, empty if none configured
-