#833: Add Player#getPing to access the player's ping
This commit is contained in:
parent
8a516e0bbb
commit
8d3051c568
@ -1677,6 +1677,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
return (getHandle().clientViewDistance == null) ? Bukkit.getViewDistance() : getHandle().clientViewDistance;
|
return (getHandle().clientViewDistance == null) ? Bukkit.getViewDistance() : getHandle().clientViewDistance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getPing() {
|
||||||
|
return getHandle().ping;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLocale() {
|
public String getLocale() {
|
||||||
return getHandle().locale;
|
return getHandle().locale;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user