Class LifestealerPostUserBanEvent

java.lang.Object
org.bukkit.event.Event
dev.chicoferreira.lifestealer.events.LifestealerPostUserBanEvent

public class LifestealerPostUserBanEvent extends org.bukkit.event.Event
Event that is called after a user has been banned and the ban commands have been executed. This event will still be called even if the external flag is set to true in the LifestealerUserController.BanSettings

Thread-safety (WARNING): This event is called with no active locks on the user.

  • Constructor Details

  • Method Details

    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()
      Gets the banned player.
      Returns:
      The banned player.
    • getUser

      @NotNull public @NotNull LifestealerUser getUser()
      Gets the LifestealerUser associated with the banned player.
      Returns:
      The LifestealerUser associated with the banned player.
    • getBan

      @NotNull public LifestealerUser.Ban getBan()
      Gets the LifestealerUser.Ban details.
      Returns:
      The ban details.
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Gets the list of handlers for this event.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      The list of handlers.
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the static handler list for this event.
      Returns:
      The static handler list.