mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
Add getTPS method
This commit is contained in:
@@ -1815,6 +1815,16 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
||||
@Nullable
|
||||
Entity getEntity(@NotNull UUID uuid);
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Gets the current server TPS
|
||||
*
|
||||
* @return current server TPS (1m, 5m, 15m in Paper-Server)
|
||||
*/
|
||||
@NotNull
|
||||
public double[] getTPS();
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
* Get the advancement specified by this key.
|
||||
*
|
||||
|
Reference in New Issue
Block a user