mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-10 17:42:16 +01:00
Allow placing blocks in spawn if ops.txt is empty. Fixes BUKKIT-3004
By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
parent
41433805ad
commit
8c0f05c6ef
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user