public final class BanListener extends Object
This class is used to register only the needed listeners. The listeners should be refreshed everytime you manually add/remove an action from a map (blacklist or whitelist)
We are ignoring the deprecation warning, as these methods are used across multiple Bukkit version.Modifier and Type | Method and Description |
---|---|
int |
getActivated()
Get the amount of events listened
|
void |
load(org.bukkit.command.CommandSender sender)
(re)Loading the listeners needed for blacklist and whitelist
|
public void load(@NotNull org.bukkit.command.CommandSender sender)
sender
- the sender who executed, for debugpublic int getActivated()
Copyright © 2021. All rights reserved.