TNT Flag set to deny is ignored
LadyCailinBot opened this issue ยท 15 comments
WORLDGUARD-3391 - Reported by val59000
When setting the flag tnt to deny on any region it doesn't prevent tnt from exploding and causing block damages.
Affected version : Build master 1583
Comment by wizjany
Can't reproduce. Entities are taking damage (which is something we may need to fix anyway), but blocks are not.
Comment by val59000
Sorry but this is still happening.
Some more information on the region where the bug occurs :
Flags: block-break: DENY, pvp: ALLOW, pistons: DENY, tnt: DENY, sleep: DENY, mob-damage: DENY, mob-spawning: DENY, creeper-explosion: DENY, other-explosion: DENY, enderdragon-block-damage: DENY, ghast-fireball: DENY, enderman-grief: DENY, lightning: DENY, entity-painting-destroy: DENY, entity-item-frame-destroy: DENY, vine-growth: DENY, fire-spread: ALLOW, lava-fire: DENY, potion-splash: ALLOW
The config of the world : http://hastebin.com/uxufesoyiw.vala
What more information should I provide ?
Comment by wizjany
Some more information on the bug not occuring:
Flags: tnt: deny
Global flags: none; config changes: none; version: current (1583)
I make a new region, flag it to tnt deny, and block up some tnt. No blocks break.
Comment by val59000
Here is the exact same thing I've done and it doesn't block tnt.
https://www.youtube.com/watch?v=sCOdz9baLo0&feature=youtu.be
Comment by val59000
Here is the exact same thing I've done and it doesn't block tnt.
https://www.youtube.com/watch?v=sCOdz9baLo0&feature=youtu.be
Comment by wizjany
Can you try lighting the tnt with redstone, like this:
https://i.imgur.com/vsrdCwd.png
https://i.imgur.com/siYZZzB.png
Comment by val59000
I tested it.
The explosion is blocked when the tnt is ignited with a redstone block as showed in your images.
Shouldn't it be blocked too when igniting it with a flint and steel ?
Comment by val59000
Yes, but in my opinion, tnt:deny should deny all tnt explosions, no matter what caused the ignition, no ?
Would it also let tnt explode when they are ignited by a lighter and launched inside a region with a tnt cannon by a non op player.
Comment by wizjany
Funny you should ask that, because no it won't. It will only allow it when it knows for a fact that the cause was a player with override permissions.
Comment by val59000
So, there is no way to prevent tnt explosions when op ? This is wierd because other flags such as mob-spawning don't allow op players to spawn mobs with egg whereas it knows also for a fact that the cause was a player with override permissions :p Same for pvp, it's blocked for op too.
Comment by wizjany
"spawn mobs with egg whereas it knows also for a fact that the cause was a player with override permissions"
actually, it doesn't. due to the way bukkit, et al. are written, there's no correlation between the creature spawning and the usage of the spawn egg.
Same for pvp, it's blocked for op too.
Yep, this is an intended exception, from the source code comments:
// Block PvP like normal even if the player has an override permission
// because (1) this is a frequent source of confusion and
// (2) some users want to block PvP even with the bypass permission