From a0d0ff0b92aaea0c1471d4d8dba23e498f622b82 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sun, 2 Jun 2013 11:19:12 -0400 Subject: [PATCH] Lighter changes in BlockIgnite as well --- .../com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java index b9bd3232..23af20f8 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java @@ -339,8 +339,11 @@ public void onBlockIgnite(BlockIgniteEvent event) { if (player != null && !plugin.getGlobalRegionManager().hasBypass(player, world)) { LocalPlayer localPlayer = plugin.wrapPlayer(player); + // this is preliminarily handled in the player listener under handleBlockRightClick + // why it's handled here too, no one knows if (cause == IgniteCause.FLINT_AND_STEEL || cause == IgniteCause.FIREBALL) { - if (!set.allows(DefaultFlag.LIGHTER, localPlayer) + if (!set.allows(DefaultFlag.LIGHTER) + && !set.canBuild(localPlayer) && !plugin.hasPermission(player, "worldguard.override.lighter")) { event.setCancelled(true); return;