registerPlayerLeft

open fun registerPlayerLeft(method: Any): RegularTrigger

Registers a new trigger that runs when a player leaves the world.

Maximum is one per tick. Any extras will queue and run in later ticks. This trigger is asynchronous.

Passes through one argument:

  • The name of the player that left

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard