Moved spawn-protection from server.properties into (settings.)spawn-radius in bukkit.yml

This commit is contained in:
Dinnerbone
2011-06-17 04:49:58 +01:00
parent c0244eda04
commit 7aadc3d666
6 changed files with 22 additions and 7 deletions

View File

@@ -99,7 +99,7 @@ public class WorldServer extends World implements BlockChangeDelegate {
}
// CraftBukkit - Configurable spawn protection
return i1 > this.server.spawnProtection || this.server.serverConfigurationManager.isOp(entityhuman.name);
return i1 > getServer().getSpawnRadius() || this.server.serverConfigurationManager.isOp(entityhuman.name);
}
protected void c(Entity entity) {