WorldGuard

WorldGuard

8M Downloads

Block 36 (PISTON_MOVING_PIECE) Can be removed when right-clicked; ignores all permissions

LadyCailinBot opened this issue ยท 5 comments

commented

WORLDGUARD-2557 - Reported by wolfiemario

Many map makers use the piston technical block, 36, for a variety of purposes (blocking water flow, preventing specific vines from growing, rigging mob pathing AI, blocking ender pearl parkour cheating, making structures appear out of thin air, etc). It's incredibly versatile, and I've also seen many server operators use it for anti-cheating purposes (mainly blocking ender pearls in parkour challenges).

However, there is a bug in WorldGuard: permissions are not evaluated when checking if a player may remove it by right-clicking. As long as you right click it without a block in your hand, it will vanish, whether or not you have build permission. This is rather annoying, as it negates its anti-cheating functionality, and users without permissions can cause permanent changes to protected areas.

Seeing as WorldGuard provides support for things like stopping vine growth, and simulating Classic sponge mechanics, I hope it would be within reason to request some means of controlling whether block 36 can be removed via right-clicking (ideally, it could just be wrapped together with the build permission, as that's where it makes the most sense).

tl;dr There's no way to stop people from removing block 36 using WorldGuard. That's inconsistent, since setting the build flag to deny even prevents things like scooping up liquids and breaking item frames.

commented

Comment by wolfiemario

Eh, I'm not quite sure how this is an enhancement instead of a bug. I mean, isn't the build flag, when set to 'deny', meant to prevent players from placing or removing blocks without permission?

commented

Comment by wizjany

because it has nothing to do with placing or removing blocks, and the block is invalid anyway

commented

Comment by wolfiemario

To be fair, it still is about block removal. Right clicking the block causes it to be removed: it is literally deleted and replaced with an air block, and doing this can have many adverse consequences in a map or server (I've seen cheaters exploit this trick almost as often as I've seen admins exploit the block's existence). In the same vein, right clicking a liquid with a bucket causes it to be removed, and build-deny blocks this. In fact, build-deny even protects paintings and item frames, which aren't blocks at all, unless I'm mistaken and that's some other setting.

That being said, yes, since it can't be created without mods, plugins, or external editors, I suppose it's not a valid block. At least this isn't like the Mojang JIRA, where issues are no longer considered once they're deemed not-a-bug. Thanks for not closing.

commented

Comment by wizjany

tldr and idc
no difference between bugs and enhancements anyway

commented

Comment by AmitKilo

I'm also using this and i didn't knew players can remove it