WorldGuard

WorldGuard

8M Downloads

Possibility to block right click use entirely?

LadyCailinBot opened this issue ยท 6 comments

commented

WORLDGUARD-2668 - Reported by UKIkarus

I seem to have a problem where by even after blocking every aspect of ender pouches within my creative world you can still right click and open them if you are not aiming at a block (e.g. aiming straight up) the inventory then opens and allows for items to be transferred between survival and creative.

Some other plugins block the use of right click entirely but do not allow independent blacklisting for each world, I would ideally like to allow ender pouches to be used within the survival world but not within the creative world so as to prevent cheating.

Could a feature be added to prevent a player from even right clicking with said items to really lock them down?

if you know of any plugins capable of doing this please do let me know :D

commented

Comment by wizjany

This is already possible. Just make sure you're blocking on-use

commented

Comment by UKIkarus

I am, however it only blocks when you use it on a brick... if you hold an ender pouch from tekkit and you aim at the sky or air instead of a block (so no outline is shown) the on-use does not register and the item functions as intended.

I have tested this with world guard and various other plugins and it always seems to work, for everything else it is fine but for these and any other inventory opening item with right click use if you aim at air or nothing it opens the inventory instead of blocking it

commented

Comment by wizjany

If the event is being cancelled (as the message shows) and the inventory is being opened anyway, I am not sure we can do anything about it. It's either an issue with bukkit or with whatever is providing your forge/bukkit integration (or perhaps the mod itself?)

commented

Comment by UKIkarus

The message only appears when I hit the floor or another brick, if you use it on the air or at the sky so no brick is being interacted with no event is fired... apologies for having that in the screenshot.

commented

Comment by wizjany

I see. Can you please test using the latest build off build.sk89q.com (#827)?

commented

Comment by UKIkarus

YAY!!! this fixed it, many thanks :D