mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 02:07:37 +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
@ -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…
Reference in New Issue
Block a user