PlayerPacketLossUpdatedEvent

Event called when the player's packet loss is updated from the hub. The packet loss is only calculated for players that use a connectionless protocol like UDP (only Minecraft: Pocket Edition).

Constructors

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

Members

Properties

packetLoss
float packetLoss [@property getter]

Gets the player's packet loss.

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 updatePacketLoss(PlayerPacketLossUpdatedEvent event) {
   event.player.title = event.packetLoss.to!string ~ "%";
   assert(event.player.pe);
}

Meta