Class BanListener

java.lang.Object
fr.andross.banitem.BanListener

public final class BanListener extends Object
This class is used to register the required listeners. Every time the configuration is modified (e.g. blacklist/whitelist modification), the load(CommandSender) should be triggered to reload the required listeners.

We are ignoring the deprecation warning, as these methods are used across multiple Bukkit/Minecraft version.

Version:
3.3.2
Author:
Andross
  • Method Details

    • load

      public void load(@NotNull @NotNull org.bukkit.command.CommandSender sender)
      (re)Loading the listeners needed for blacklist and whitelist.
      Parameters:
      sender - the sender who executed, for debug
    • getActivated

      public int getActivated()
      Get the amount of events registered.
      Returns:
      the amount of events registered