Package me.kzlyth.api.events.ban
Klasse PlayerUnbanEvent
java.lang.Object
me.kzlyth.api.events.ZenithEvent
me.kzlyth.api.events.ban.PlayerUnbanEvent
Event fired when a player is unbanned.
For detailed documentation and examples, see: https://docs.zenith-studios.org/
Example:
ZenithEventBus.getInstance().subscribe(PlayerUnbanEvent.class, event -> {
getLogger().info(event.getPlayerName() + " was unbanned by " + event.getStaffName());
});
- 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
-
PlayerUnbanEvent
public PlayerUnbanEvent(@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 PlayerUnbanEvent.- Parameter:
playerUuid- The UUID of the unbanned playerplayerName- The name of the unbanned playerstaffUuid- The UUID of the staff member (null for console)staffName- The name of the staff memberreason- The reason for the unbancaseId- The case ID
-