Package me.kzlyth.api.events
Klasse ZenithEvent
java.lang.Object
me.kzlyth.api.events.ZenithEvent
- Bekannte direkte Unterklassen:
PlayerBanEvent,PlayerKickEvent,PlayerMuteEvent,PlayerUnbanEvent,PlayerUnmuteEvent,PlayerWarnEvent
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 TypMethodeBeschreibungintGets the case ID associated with this action.@Nullable org.bukkit.entity.PlayerGets the Player object if online, or null if offline.@NotNull StringGets the name of the target player.@NotNull UUIDGets the UUID of the target player.@NotNull StringGets the reason for the action.@NotNull StringGets the name of the staff member who performed the action.@Nullable org.bukkit.entity.PlayerGets the Player object of the staff member if online, or null if offline/console.@Nullable UUIDGets the UUID of the staff member who performed the action.booleanChecks if this event has been cancelled.voidsetCancelled(boolean cancelled) Sets the cancellation state of this event.
-
Methodendetails
-
getPlayerUuid
Gets the UUID of the target player.- Gibt zurück:
- The player UUID
-
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
Gets the UUID of the staff member who performed the action.- Gibt zurück:
- The staff UUID, or null for console
-
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
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
-