mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
#833: Add Player#getPing to access the player's ping
This commit is contained in:
parent
8a516e0bbb
commit
8d3051c568
1 changed files with 5 additions and 0 deletions
|
@ -1677,6 +1677,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
return (getHandle().clientViewDistance == null) ? Bukkit.getViewDistance() : getHandle().clientViewDistance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPing() {
|
||||
return getHandle().ping;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocale() {
|
||||
return getHandle().locale;
|
||||
|
|
Loading…
Add table
Reference in a new issue