Klasse ZenithEvent

java.lang.Object
me.kzlyth.api.events.ZenithEvent
Bekannte direkte Unterklassen:
PlayerBanEvent, PlayerKickEvent, PlayerMuteEvent, PlayerUnbanEvent, PlayerUnmuteEvent, PlayerWarnEvent

public abstract class ZenithEvent extends Object
Base class for all Zenith-Mod events.

All custom events fired by Zenith-Mod extend this class. For detailed documentation and examples, see: https://docs.zenith-studios.org/

Seit:
1.2.3
Autor:
Zenith-Studios
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    Gets the case ID associated with this action.
    @Nullable org.bukkit.entity.Player
    Gets the Player object if online, or null if offline.
    @NotNull String
    Gets the name of the target player.
    @NotNull UUID
    Gets the UUID of the target player.
    @NotNull String
    Gets the reason for the action.
    @NotNull String
    Gets the name of the staff member who performed the action.
    @Nullable org.bukkit.entity.Player
    Gets the Player object of the staff member if online, or null if offline/console.
    @Nullable UUID
    Gets the UUID of the staff member who performed the action.
    boolean
    Checks if this event has been cancelled.
    void
    setCancelled(boolean cancelled)
    Sets the cancellation state of this event.

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Methodendetails

    • getPlayerUuid

      @NotNull public @NotNull UUID getPlayerUuid()
      Gets the UUID of the target player.
      Gibt zurück:
      The player UUID
    • getPlayerName

      @NotNull public @NotNull String getPlayerName()
      Gets the name of the target player.
      Gibt zurück:
      The player name
    • getPlayer

      @Nullable public @Nullable org.bukkit.entity.Player getPlayer()
      Gets the Player object if online, or null if offline.
      Gibt zurück:
      The player, or null if offline
    • getStaffUuid

      @Nullable public @Nullable UUID getStaffUuid()
      Gets the UUID of the staff member who performed the action.
      Gibt zurück:
      The staff UUID, or null for console
    • getStaffName

      @NotNull public @NotNull String getStaffName()
      Gets the name of the staff member who performed the action.
      Gibt zurück:
      The staff name
    • getStaffPlayer

      @Nullable public @Nullable org.bukkit.entity.Player getStaffPlayer()
      Gets the Player object of the staff member if online, or null if offline/console.
      Gibt zurück:
      The staff player, or null if offline/console
    • getReason

      @NotNull public @NotNull String getReason()
      Gets the reason for the action.
      Gibt zurück:
      The reason
    • getCaseId

      public int getCaseId()
      Gets the case ID associated with this action.
      Gibt zurück:
      The case ID
    • isCancelled

      public boolean isCancelled()
      Checks if this event has been cancelled.
      Gibt zurück:
      True if cancelled, false otherwise
    • setCancelled

      public void setCancelled(boolean cancelled)
      Sets the cancellation state of this event.
      Parameter:
      cancelled - True to cancel the event, false to allow it