Deprecate server config getters (#12189)

This commit is contained in:
Warrior
2025-02-25 22:03:38 +01:00
committed by GitHub
parent ca2610904b
commit a501c45918
3 changed files with 57 additions and 1 deletions

View File

@@ -2980,8 +2980,19 @@ public final class Bukkit {
}
// Paper end - Folia region threading API
/**
* @deprecated All methods on this class have been deprecated, see the individual methods for replacements.
*/
@Deprecated(since = "1.21.4", forRemoval = true)
@NotNull
public static Server.Spigot spigot() {
return server.spigot();
}
/**
* Restarts the server. If the server administrator has not configured restarting, the server will stop.
*/
public static void restart() {
server.restart();
}
}