Package me.kzlyth.api.events.kick
Klasse PlayerKickEvent
java.lang.Object
me.kzlyth.api.events.ZenithEvent
me.kzlyth.api.events.kick.PlayerKickEvent
Event fired when a player is kicked.
For detailed documentation and examples, see: https://docs.zenith-studios.org/
Example:
ZenithEventBus.getInstance().subscribe(PlayerKickEvent.class, event -> {
getLogger().info(event.getPlayerName() + " was kicked: " + event.getReason());
});
- Seit:
- 1.2.3
- Autor:
- Zenith-Studios
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Von Klasse geerbte Methoden me.kzlyth.api.events.ZenithEvent
getCaseId, getPlayer, getPlayerName, getPlayerUuid, getReason, getStaffName, getStaffPlayer, getStaffUuid, isCancelled, setCancelled
-
Konstruktordetails
-
PlayerKickEvent
public PlayerKickEvent(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull String playerName, @Nullable @Nullable UUID staffUuid, @NotNull @NotNull String staffName, @NotNull @NotNull String reason, int caseId) Constructs a new PlayerKickEvent.- Parameter:
playerUuid- The UUID of the kicked playerplayerName- The name of the kicked playerstaffUuid- The UUID of the staff member (null for console)staffName- The name of the staff memberreason- The reason for the kickcaseId- The case ID
-