Added spawn-protection property to server.properties

This commit is contained in:
Zenexer authored and tahg committed 2011-02-10 12:16:30 +08:00
1 parent 814c9d444f
commit fbe54b05f4
4 files changed
+12 -10

No files matched your search

@@ -325,7 +325,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
// CraftBukkit end
if (packet14blockdig.e == 0) {
if (j1 > 16 || flag) {
if (j1 > this.d.spawnProtection || flag) {
// CraftBukkit start
if(blockId > 0) {
BlockDamageEvent event;
@@ -354,7 +354,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
}
// CraftBukkit end
} else if (packet14blockdig.e == 1) {
if (j1 > 16 || flag) {
if (j1 > this.d.spawnProtection || flag) {
// CraftBukkit start
BlockDamageEvent event;
// If the amount of damage going to the block plus the current amount