Carpenter Doors allow users to snick-clic to open them, bypassing WorldGuard protections
ExDomino opened this issue ยท 6 comments
With a plugin like WorldGuard, it is possible to protect an area in order to, for exemple, prevent players to open a door. It work perfectly well with Carpenter's Door if the player do a simple right clic, but a sneak-clic on doors always open them, bypassing area protections. Is there a way to disable the sneak right clic?
The normal click is perfectly blocked by permissions plugins, it's really your sneak-click feature that bypass protections, because I believe it's not vanilla-like.
The best you can do is enable ownership in the configuration file and lock the doors. Disabling the click feature would impact too many parts of the code and lock out functionality.
I've looked into how plugins might gather block permissions, but it's still sort of a mystery to me as to how exactly they hook into the event system.
Those edge cases are really why I implemented block protection at the mod-level. If it's enabled in the configuration file you shouldn't run into this issue.
I use all possible click combinations (within reason) in order to get the most functionality out of the hammer and chisel. I don't remember specifically what they are at the moment, but the tutorial on the website details the usage for the blocks.