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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionLifestealerPostUserBanEvent(@NotNull org.bukkit.entity.Player player, @NotNull LifestealerUser user, LifestealerUser.Ban ban) Constructs a newLifestealerPostUserBanEvent. -
Method Summary
Modifier and TypeMethodDescriptiongetBan()Gets theLifestealerUser.Bandetails.static org.bukkit.event.HandlerListGets the static handler list for this event.@NotNull org.bukkit.event.HandlerListGets the list of handlers for this event.@NotNull org.bukkit.entity.PlayerGets the banned player.@NotNull LifestealerUsergetUser()Gets theLifestealerUserassociated with the banned player.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
LifestealerPostUserBanEvent
public LifestealerPostUserBanEvent(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull LifestealerUser user, @NotNull LifestealerUser.Ban ban) Constructs a newLifestealerPostUserBanEvent.- Parameters:
player- ThePlayerwho has been banned.user- TheLifestealerUserassociated with the banned player.ban- The ban details.
-
-
Method Details
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer()Gets the banned player.- Returns:
- The banned player.
-
getUser
Gets theLifestealerUserassociated with the banned player.- Returns:
- The
LifestealerUserassociated with the banned player.
-
getBan
Gets theLifestealerUser.Bandetails.- Returns:
- The ban details.
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Gets the list of handlers for this event.- Specified by:
getHandlersin classorg.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.
-