[ci skip] Deprecate Server#setSpawnRadius (#12024)

This commit is contained in:
Lulu13022002
2025-02-08 22:10:08 +01:00
committed by GitHub
parent 1a04e96ab7
commit eff617b8f8
3 changed files with 9 additions and 11 deletions

View File

@@ -1373,7 +1373,11 @@ public final class Bukkit {
* Sets the radius, in blocks, around each worlds spawn point to protect.
*
* @param value new spawn radius, or 0 if none
* @deprecated has not functioned for a long time as the spawn radius is defined by the server.properties file.
* There is no API replacement for this method. It is generally recommended to implement "protection"-like behaviour
* via events or third-party plugin APIs.
*/
@Deprecated(since = "1.21.4", forRemoval = true)
public static void setSpawnRadius(int value) {
server.setSpawnRadius(value);
}