mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
Allow placing blocks in spawn if ops.txt is empty. Fixes BUKKIT-3004
This commit is contained in:
parent
5409d05d3a
commit
320712aba7
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue