Klasse PlayerUnbanEvent

java.lang.Object
me.kzlyth.api.events.ZenithEvent
me.kzlyth.api.events.ban.PlayerUnbanEvent

public class PlayerUnbanEvent extends ZenithEvent
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
  • 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 player
      playerName - The name of the unbanned player
      staffUuid - The UUID of the staff member (null for console)
      staffName - The name of the staff member
      reason - The reason for the unban
      caseId - The case ID