PlayerLeftEvent

Event called when a player leaves the server, after PlayerDespawnEvent. It's the last event called for the player, after it lefts the server, and is only called once, like PlayerJoinEvent.

Constructors

this
this(NodeServer server, PlayerInfo player, ubyte reason)
Undocumented in source.

Members

Enums

Reason
enum Reason
Undocumented in source.

Properties

reason
ubyte reason [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From PlayerEvent

player
const(PlayerInfo) player [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

@effect playerleft(PlayerLeftEvent event) {
   assert(!event.player.online);
}

Meta