mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-26 02:17:38 +01:00
Allow ops to stack spawners by default.
This commit is contained in:
parent
9231f1c112
commit
47de9e3b83
@ -182,7 +182,7 @@ public class BlockListeners implements Listener {
|
|||||||
SpawnerStack stack = UltimateStackerApi.getSpawnerStackManager().getSpawner(block);
|
SpawnerStack stack = UltimateStackerApi.getSpawnerStackManager().getSpawner(block);
|
||||||
if (stack == null) return;
|
if (stack == null) return;
|
||||||
if (player.isSneaking()) return;
|
if (player.isSneaking()) return;
|
||||||
if (player.hasPermission("ultimatestacker.spawner.nostack")) {
|
if (player.hasPermission("ultimatestacker.spawner.nostack") && !player.isOp()) {
|
||||||
event.setCancelled(false);
|
event.setCancelled(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user