ping()
Get the player's current ping / latency.
Function Definition
ts
public readonly ping: number;
Returns
- number
Documentation
Examples
ts
const ping = player.ping;
if (player.ping >= 200) {
player.kick('Ping too high');
return;
}