Uses of Enum Class
fr.andross.banitem.actions.BanAction
Packages that use BanAction
Package
Description
-
Uses of BanAction in fr.andross.banitem
Methods in fr.andross.banitem that return types with arguments of type BanActionModifier and TypeMethodDescription@NotNull Map
<BanAction, BanActionData> BanUtils.getBanActionsFromItemSection
(@NotNull List<org.bukkit.World> worlds, @Nullable org.bukkit.configuration.ConfigurationSection section, @NotNull Debug debug) Get a map of actions and actions data from a section.BanDatabase.getBlacklistActions()
Getting an immutable set of used ban actions (BanAction
).BanConfig.getPriority()
Get the ban actions which requires the highest priority.Methods in fr.andross.banitem with parameters of type BanActionModifier and TypeMethodDescriptionboolean
BanUtils.hasPermission
(@NotNull org.bukkit.entity.Player player, @NotNull String itemName, @NotNull BanAction action, @Nullable BanData... data) Method to check if the player has the bypass permission for either the item (material name) or custom name.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) This method is used to check if the item is banned, in both blacklist and whitelist, not involving a player.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.World world, @NotNull org.bukkit.Material material, @NotNull BanAction action, @Nullable BanData... data) This method is used to check if the item is banned, in both blacklist and whitelist, not involving a player.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.World world, @NotNull org.bukkit.inventory.ItemStack item, @NotNull BanAction action, @Nullable BanData... data) This method is used to check if the item is banned, in both blacklist and whitelist, not involving a player.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Material m, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the material is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Material m, @NotNull BanAction action, @Nullable BanData... data) Check if the material is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location loc, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location loc, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location loc, @NotNull org.bukkit.Material m, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the material is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location loc, @NotNull org.bukkit.Material m, @NotNull BanAction action, @Nullable BanData... data) Check if the material is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location loc, @NotNull org.bukkit.inventory.ItemStack item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the ItemStack is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location loc, @NotNull org.bukkit.inventory.ItemStack item, @NotNull BanAction action, @Nullable BanData... data) Check if the ItemStack is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.ItemStack item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the ItemStack is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.ItemStack item, @NotNull BanAction action, @Nullable BanData... data) Check if the ItemStack is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBlacklisted
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) Check if the item is blacklisted, not involving a player.boolean
BanItemAPI.isBlacklisted
(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location location, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the item is blacklisted.boolean
BanItemAPI.isWhitelisted
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) Check if the item is whitelisted, not involving a player.boolean
BanItemAPI.isWhitelisted
(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location location, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the item is whitelisted (allowed), sending a message or not to the player.void
BanUtils.sendMessage
(@NotNull org.bukkit.entity.Player player, @NotNull BanAction action, @Nullable List<String> messages) Sending the configured ban message to the player.void
BanUtils.sendMessage
(@NotNull org.bukkit.entity.Player player, @NotNull String itemName, @NotNull BanAction action, @Nullable BanActionData data) This method is used to send a ban message to player, if configured.Method parameters in fr.andross.banitem with type arguments of type BanActionModifier and TypeMethodDescriptionboolean
BanItemAPI.addToBlacklist
(@NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> actions, @Nullable org.bukkit.World... worlds) Add a new banned item to blacklist and save the config file used.boolean
BanItemAPI.addToBlacklist
(@NotNull Collection<? extends BannedItem> items, @NotNull Map<BanAction, BanActionData> actions, @Nullable org.bukkit.World... worlds) Add the banned items to the blacklist and save the config file used.boolean
BanItemAPI.addToWhitelist
(@NotNull WhitelistedWorld whitelistedWorld, @NotNull BannedItem item, @NotNull 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
Methods in fr.andross.banitem.actions that return BanAction -
Uses of BanAction in fr.andross.banitem.database
Methods in fr.andross.banitem.database that return types with arguments of type BanActionModifier and TypeMethodDescription@Nullable Map
<BanAction, BanActionData> Blacklist.getBanActions
(@NotNull org.bukkit.World world, @NotNull BannedItem item) Trying to get the ban actions with their respective ban actions data for this item in the said world.WhitelistedWorld.getIgnored()
Set of ignored actions, empty if none configured.Methods in fr.andross.banitem.database with parameters of type BanActionModifier and TypeMethodDescription@Nullable BanActionData
Blacklist.getBanData
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action) Try to get the ban actions data for this item with this action.boolean
Blacklist.isBlacklisted
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) This method is used to check if the item is banned, not involving a player.boolean
Blacklist.isBlacklisted
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location location, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the action with the item is blacklisted for the player.boolean
Whitelist.isWhitelisted
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) This method is used to check if the item is whitelisted, not involving a player.boolean
Whitelist.isWhitelisted
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location location, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the item is whitelisted (allowed).Method parameters in fr.andross.banitem.database with type arguments of type BanActionModifier and TypeMethodDescriptionvoid
Blacklist.addNewBan
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> map) This will add a new entry to the blacklist.void
WhitelistedWorld.addNewEntry
(@NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> map) This will add a new entry to the whitelist.void
Whitelist.addNewException
(@NotNull WhitelistedWorld ww, @NotNull BannedItem item, @NotNull 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
Fields in fr.andross.banitem.database.items with type parameters of type BanActionModifier and TypeFieldDescriptionprotected final Map
<CustomBannedItem, Map<BanAction, BanActionData>> Items.customItems
Items map, containing all custom items.protected final Map
<BannedItem, Map<BanAction, BanActionData>> Items.items
Items map, containing all items.Methods in fr.andross.banitem.database.items that return types with arguments of type BanActionModifier and TypeMethodDescription@Nullable Map
<BanAction, BanActionData> Items.get
(@NotNull 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, unmodifiable.@NotNull Map
<CustomBannedItem, Map<BanAction, BanActionData>> Items.getCustomItems()
Get the custom items map.@NotNull Map
<BannedItem, Map<BanAction, BanActionData>> Items.getItems()
Get the items map (include normal and meta items).Methods in fr.andross.banitem.database.items with parameters of type BanActionModifier and TypeMethodDescription@Nullable BanActionData
Items.get
(@NotNull BannedItem bannedItem, @NotNull BanAction action) Get the BanActionData of the BannedItem for the said action, if present. -
Uses of BanAction in fr.andross.banitem.events
Methods in fr.andross.banitem.events that return BanActionModifier and TypeMethodDescription@NotNull BanAction
PlayerBanItemEvent.getAction()
The ban action.Constructors in fr.andross.banitem.events with parameters of type BanActionModifierConstructorDescriptionPlayerBanItemEvent
(@NotNull org.bukkit.entity.Player player, @NotNull PlayerBanItemEvent.Type type, @NotNull BannedItem bannedItem, @NotNull BanAction action, @NotNull BanActionData actionData, @Nullable BanData... data) Construct the event with all information about the occurring banning process.