Uses of Class
fr.andross.banitem.actions.BanActionData
Package
Description
-
Uses of BanActionData in fr.andross.banitem
Modifier and TypeMethodDescriptionBanUtils.getBanActionsForItem
(List<org.bukkit.World> worlds, org.bukkit.configuration.ConfigurationSection itemSection, String key, Debug d) Get ban actions data for a sectionModifier and TypeMethodDescriptionBanUtils.getBanActionsFromItemSection
(List<org.bukkit.World> worlds, org.bukkit.configuration.ConfigurationSection section, Debug d) Get a map of actions and actions data from a sectionModifier and TypeMethodDescriptionvoid
BanUtils.sendMessage
(org.bukkit.entity.Player player, String itemName, BanAction action, BanActionData data) This method is used to send a ban message to player, if exists.Modifier and TypeMethodDescriptionboolean
BanItemAPI.addToBlacklist
(BannedItem item, Map<BanAction, BanActionData> actions, org.bukkit.World... worlds) Add a new banned item to blacklist and save the config file used.boolean
BanItemAPI.addToBlacklist
(Collection<? extends BannedItem> items, Map<BanAction, BanActionData> actions, org.bukkit.World... worlds) Add the banned items to the blacklist and save the config file usedboolean
BanItemAPI.addToWhitelist
(WhitelistedWorld ww, BannedItem item, Map<BanAction, BanActionData> actions) Add an item on the whitelist of a world and save in the used config -
Uses of BanActionData in fr.andross.banitem.database
Modifier and TypeMethodDescriptionBlacklist.getBanData
(org.bukkit.World world, BannedItem item, BanAction action) Try to get the ban actions data for this item with this action.Modifier and TypeMethodDescriptionBlacklist.getBanActions
(org.bukkit.World world, BannedItem item) Trying to get the ban actions with their respective ban actions data for this item in the said world.Modifier and TypeMethodDescriptionvoid
Blacklist.addNewBan
(org.bukkit.World world, BannedItem item, Map<BanAction, BanActionData> map) This will add a new entry to the blacklist.void
WhitelistedWorld.addNewEntry
(BannedItem item, Map<BanAction, BanActionData> map) This will add a new entry to the whitelistvoid
Whitelist.addNewException
(WhitelistedWorld ww, BannedItem item, Map<BanAction, BanActionData> actions) This will add a new exception (allowed item) into the WhitelistedWorld object. -
Uses of BanActionData in fr.andross.banitem.database.items
Modifier and TypeFieldDescriptionprotected final Map<CustomBannedItem,
Map<BanAction, BanActionData>> Items.customItems
protected final Map<BannedItem,
Map<BanAction, BanActionData>> Items.items
Modifier and TypeMethodDescriptionItems.get
(BannedItem bannedItem, BanAction action) Get the BanActionData of the BannedItem for the said action, if present.Modifier and TypeMethodDescriptionItems.get
(BannedItem bannedItem) Get a map of actions and their respective data for a banned item object, if present.Items.getCustomItems()
Get the custom items mapItems.getItems()
Get the items map (include normal and meta items) -
Uses of BanActionData in fr.andross.banitem.events
Modifier and TypeMethodDescriptionPlayerBanItemEvent.getactionData()
Deprecated.Error in typo.PlayerBanItemEvent.getActionData()
The ban action dataModifierConstructorDescriptionPlayerBanItemEvent
(org.bukkit.entity.Player player, PlayerBanItemEvent.Type type, BannedItem bannedItem, BanAction action, BanActionData actionData, BanData... data)