PlayerLatencyUpdatedEvent

Event called when the player's latency is updated from the hub.

Constructors

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

Members

Properties

latency
uint latency [@property getter]

Gets the player's latency.

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

@event updateLatency(PlayerLatencyUpdatedEvent event) {
   event.player.title = event.latency.to!string ~ " ms";
}

Meta