ModelSpawnAtPlayerEvent

Triggered when a model tracker is about to be spawned for a specific player.

This event allows preventing the model from spawning for that player.

Since

2.0.0

Constructors

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

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.