Add getTPS method
This commit is contained in:
@ -2132,6 +2132,17 @@ public final class Bukkit {
|
||||
return server.getEntity(uuid);
|
||||
}
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Gets the current server TPS
|
||||
* @return current server TPS (1m, 5m, 15m in Paper-Server)
|
||||
*/
|
||||
@NotNull
|
||||
public static double[] getTPS() {
|
||||
return server.getTPS();
|
||||
}
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
* Get the advancement specified by this key.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user