registerServerDisconnect

open fun registerServerDisconnect(method: Any): RegularTrigger

Registers a new trigger that runs whenever the player disconnects from a server

Passes through two arguments:

  • The event, which cannot be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard