Lagging threshold

This commit is contained in:
William Blake Galbreath
2025-01-05 11:37:54 -08:00
committed by granny
parent 13257215f7
commit cac5541365
8 changed files with 54 additions and 105 deletions

View File

@@ -43,7 +43,7 @@
@Override
public void restart() {
org.spigotmc.RestartCommand.restart();
@@ -3288,4 +_,11 @@
@@ -3288,4 +_,18 @@
this.console.addPluginAllowingSleep(plugin.getName(), value);
}
// Paper end - API to check if the server is sleeping
@@ -54,4 +54,11 @@
+ return this.getProperties().serverName;
+ }
+ // Purpur end - Bring back server name
+
+ // Purpur start - Lagging threshold
+ @Override
+ public boolean isLagging() {
+ return getServer().lagging;
+ }
+ // Purpur end - Lagging threshold
}