public final class BanDatabase extends Object
Modifier and Type | Method and Description |
---|---|
void |
addMetaItem(String metaName,
org.bukkit.inventory.ItemStack metaItem)
Try to add a meta item (
BannedItem ) into the map and the config file |
Blacklist |
getBlacklist()
Get the blacklist map
|
Set<BanAction> |
getBlacklistActions()
Getting an immutable set of used ban actions (
BanAction )
This is actually used to register the specific listeners for the specific actions |
CustomItems |
getCustomItems()
Get the custom items map
|
MetaItems |
getMetaItems()
Get the meta items map
|
String |
getName(BannedItem bannedItem) |
Whitelist |
getWhitelist()
Get the whitelist map
|
void |
removeMetaItem(String metaItem)
Try to remove the meta item with the said name.
|
@NotNull public Set<BanAction> getBlacklistActions()
BanAction
)
This is actually used to register the specific listeners for the specific actionspublic void addMetaItem(@NotNull String metaName, @NotNull org.bukkit.inventory.ItemStack metaItem)
BannedItem
) into the map and the config filemetaName
- name of the meta itemmetaItem
- ItemStackpublic void removeMetaItem(@NotNull String metaItem)
metaItem
- name of the meta item@NotNull public String getName(@NotNull BannedItem bannedItem)
@NotNull public CustomItems getCustomItems()
@NotNull public MetaItems getMetaItems()
@NotNull public Blacklist getBlacklist()
@NotNull public Whitelist getWhitelist()
Copyright © 2021. All rights reserved.