mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
#833: Add Player#getPing to access the player's ping
By: retrooper <retrooperdev@gmail.com>
This commit is contained in:
parent
6f87ada41c
commit
165c8596d8
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