Class BanListener

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

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.
Version:
3.3.2
Author:
Andross
  • Method Details

    • load

      public void load(@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 listened
      Returns:
      the amount of events listened