mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 08:02:13 -07:00
Remove spawn-radius setting in bukkit.yml in favour of spawn-protection in
server.properties. Fixes BUKKIT-2657
This commit is contained in:
@@ -920,8 +920,17 @@ public final class CraftServer implements Server {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void removeBukkitSpawnRadius() {
|
||||
configuration.set("settings.spawn-radius", null);
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
public int getBukkitSpawnRadius() {
|
||||
return configuration.getInt("settings.spawn-radius", -1);
|
||||
}
|
||||
|
||||
public int getSpawnRadius() {
|
||||
return configuration.getInt("settings.spawn-radius", 16);
|
||||
return ((DedicatedServer) console).propertyManager.getInt("spawn-protection", 16);
|
||||
}
|
||||
|
||||
public void setSpawnRadius(int value) {
|
||||
|
Reference in New Issue
Block a user