summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2012-12-05 04:59:42 -0600
committerTravis Watkins <amaranth@ubuntu.com>2012-12-05 05:01:15 -0600
commit320712aba7bba1f81e0d194c8b17f17347aec687 (patch)
treee2c150cb46f7967698a910d8198d7b6c228866c8 /src/main/java
parent5409d05d3ac1ed77d8d96effd0864f5e3f9af455 (diff)
downloadcraftbukkit-320712aba7bba1f81e0d194c8b17f17347aec687.tar
craftbukkit-320712aba7bba1f81e0d194c8b17f17347aec687.tar.gz
craftbukkit-320712aba7bba1f81e0d194c8b17f17347aec687.tar.lz
craftbukkit-320712aba7bba1f81e0d194c8b17f17347aec687.tar.xz
craftbukkit-320712aba7bba1f81e0d194c8b17f17347aec687.zip
Allow placing blocks in spawn if ops.txt is empty. Fixes BUKKIT-3004
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
index a323f6fb..e225cbf4 100644
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
@@ -68,6 +68,7 @@ public class CraftEventFactory {
if (world.getHandle().dimension != 0) return true;
if (spawnSize <= 0) return true;
+ if (((CraftServer) Bukkit.getServer()).getHandle().getOPs().isEmpty()) return true;
if (player.isOp()) return true;
ChunkCoordinates chunkcoordinates = worldServer.getSpawn();