Uses of Enum Class
fr.andross.banitem.actions.BanAction
Package
Description
-
Uses of BanAction in fr.andross.banitem
Modifier 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 sectionBanDatabase.getBlacklistActions()
Getting an immutable set of used ban actions (BanAction
) This is actually used to register the specific listeners for the specific actionsBanConfig.getPriority()
Get the ban actions which requires the highest priorityModifier and TypeMethodDescriptionboolean
BanUtils.hasPermission
(org.bukkit.entity.Player player, String itemName, BanAction action, BanData... data) Method to check if the player has the bypass permission for either the item (material name) or custom nameboolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, BannedItem item, BanAction action, BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack item, boolean sendMessage, BanAction action, BanData... data) Check if the ItemStack is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack item, BanAction action, BanData... data) Check if the ItemStack is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Location loc, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Location loc, BannedItem item, BanAction action, BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.inventory.ItemStack item, boolean sendMessage, BanAction action, BanData... data) Check if the ItemStack is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.inventory.ItemStack item, BanAction action, BanData... data) Check if the ItemStack is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.Material m, boolean sendMessage, BanAction action, BanData... data) Check if the material is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.Material m, BanAction action, BanData... data) Check if the material is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Material m, boolean sendMessage, BanAction action, BanData... data) Check if the material is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Material m, BanAction action, BanData... data) Check if the material is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) This method is used to check if the item is banned, in both blacklist and whitelist, not involving a player This method is mainly used to check dispensers dispense and hoppers transferboolean
BanItemAPI.isBanned
(org.bukkit.World world, org.bukkit.inventory.ItemStack item, BanAction action, BanData... data) This method is used to check if the item is banned, in both blacklist and whitelist, not involving a player This method is mainly used to check dispensers dispense and hoppers transferboolean
BanItemAPI.isBanned
(org.bukkit.World world, org.bukkit.Material material, BanAction action, BanData... data) This method is used to check if the item is banned, in both blacklist and whitelist, not involving a player This method is mainly used to check dispensers dispense and hoppers transferboolean
BanItemAPI.isBlacklisted
(org.bukkit.entity.Player player, org.bukkit.Location location, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the item is blacklisted, sending a message or not to the player.boolean
BanItemAPI.isBlacklisted
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) Check if the item is blacklisted, not involving a playerboolean
BanItemAPI.isWhitelisted
(org.bukkit.entity.Player player, org.bukkit.Location location, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the item is whitelisted (allowed), sending a message or not to the player.boolean
BanItemAPI.isWhitelisted
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) Check if the item is whitelisted, not involving a playervoid
BanUtils.sendMessage
(org.bukkit.entity.Player player, BanAction action, List<String> messages) This method is used to send a ban message to player, if exists.void
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 BanAction in fr.andross.banitem.actions
-
Uses of BanAction in fr.andross.banitem.database
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.WhitelistedWorld.getIgnored()
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.boolean
Blacklist.isBlacklisted
(org.bukkit.entity.Player player, org.bukkit.Location location, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the action with the item is blacklisted for the player.boolean
Blacklist.isBlacklisted
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) This method is used to check if the item is banned, not involving a player This method is mainly used to check dispensers dispense and hoppers transferboolean
Whitelist.isWhitelisted
(org.bukkit.entity.Player player, org.bukkit.Location location, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the item is whitelisted (allowed)boolean
Whitelist.isWhitelisted
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) This method is used to check if the item is whitelisted, not involving a player This method is mainly used to check dispensers dispense and hoppers transferModifier 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 BanAction 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) Get a map of actions and their respective data for a banned item object, if present.Items.getAllActions()
Get all actions saved for the items, unmodifiableItems.getCustomItems()
Get the custom items mapItems.getItems()
Get the items map (include normal and meta items)Modifier and TypeMethodDescriptionItems.get
(BannedItem bannedItem, BanAction action) Get the BanActionData of the BannedItem for the said action, if present. -
Uses of BanAction in fr.andross.banitem.events
Modifier and TypeMethodDescriptionPlayerBanItemEvent.getaction()
Deprecated.Error in typo.PlayerBanItemEvent.getAction()
The ban actionModifierConstructorDescriptionPlayerBanItemEvent
(org.bukkit.entity.Player player, PlayerBanItemEvent.Type type, BannedItem bannedItem, BanAction action, BanActionData actionData, BanData... data)