Added spawn-protection property to server.properties

This commit is contained in:
Zenexer
2011-02-10 11:15:03 +08:00
committed by tahg
parent 814c9d444f
commit fbe54b05f4
4 changed files with 12 additions and 10 deletions

View File

@@ -41,6 +41,7 @@ public class MinecraftServer implements ICommandListener, Runnable {
public boolean l;
public boolean m;
public boolean n;
public int spawnProtection;
public List<WorldServer> worlds = new ArrayList<WorldServer>();
// Craftbukkit start - adds argument OptionSet
@@ -73,6 +74,7 @@ public class MinecraftServer implements ICommandListener, Runnable {
this.l = this.d.a("online-mode", true);
this.m = this.d.a("spawn-animals", true);
this.n = this.d.a("pvp", true);
this.spawnProtection = this.d.a("spawn-protection", 16);
InetAddress inetaddress = null;
if (s.length() > 0) {