diff options
author | EvilSeph <evilseph@gmail.com> | 2012-10-28 01:30:09 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-28 01:55:27 -0400 |
commit | 784f9e31a8bb21adb6b354b8c05225bbac06dbb6 (patch) | |
tree | 1f5a22c4d7735a54c66148a2633c48278d279cab /src/main/java/org/bukkit | |
parent | 5fe8523023dc836ce6b2a29c369ca21e7a81e163 (diff) | |
download | craftbukkit-784f9e31a8bb21adb6b354b8c05225bbac06dbb6.tar craftbukkit-784f9e31a8bb21adb6b354b8c05225bbac06dbb6.tar.gz craftbukkit-784f9e31a8bb21adb6b354b8c05225bbac06dbb6.tar.lz craftbukkit-784f9e31a8bb21adb6b354b8c05225bbac06dbb6.tar.xz craftbukkit-784f9e31a8bb21adb6b354b8c05225bbac06dbb6.zip |
Remove spawn-radius setting in bukkit.yml in favour of spawn-protection in
server.properties. Fixes BUKKIT-2657
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 24b20f12..2cd7d0d1 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -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) { |