PlayerShowTrackerEvent

Triggered when a tracker is about to be shown to a specific player.

This event allows preventing the tracker from being shown.

Since

2.0.0

Constructors

Link copied to clipboard
@ApiStatus.Internal
constructor(@NotNull tracker: @NotNull Tracker, @NotNull player: @NotNull PlatformPlayer)
Creates a new PlayerShowTrackerEvent.

Functions

Link copied to clipboard
open fun call(): Boolean
Dispatches this event to the global event bus.
Link copied to clipboard
abstract fun isCancelled(): Boolean
Checks if the event has been canceled.
Link copied to clipboard
abstract fun setCancelled(cancel: Boolean)
Sets the cancellation state of the event.
Link copied to clipboard
@NotNull
open fun tracker(): @NotNull Tracker
Returns the tracker being shown.