mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-12 22:59:31 +01:00
Remove spawn-radius setting in bukkit.yml in favour of spawn-protection in
server.properties. Fixes BUKKIT-2657 By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
1177b02708
commit
1f7d5bc41b
@ -920,8 +920,17 @@ public final class CraftServer implements Server {
|
|||||||
return result;
|
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() {
|
public int getSpawnRadius() {
|
||||||
return configuration.getInt("settings.spawn-radius", 16);
|
return ((DedicatedServer) console).propertyManager.getInt("spawn-protection", 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSpawnRadius(int value) {
|
public void setSpawnRadius(int value) {
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
settings:
|
settings:
|
||||||
allow-end: true
|
allow-end: true
|
||||||
warn-on-overload: true
|
warn-on-overload: true
|
||||||
spawn-radius: 16
|
|
||||||
permissions-file: permissions.yml
|
permissions-file: permissions.yml
|
||||||
update-folder: update
|
update-folder: update
|
||||||
ping-packet-limit: 100
|
ping-packet-limit: 100
|
||||||
|
Loading…
Reference in New Issue
Block a user