elBukkit / PreciousStones

Self-service protection for Minecraft servers
http://dev.bukkit.org/server-mods/preciousstones/
10 stars 10 forks source link

Added Integration with EzChestShop #131

Closed ItzAmirreza closed 2 years ago

ItzAmirreza commented 2 years ago

Hello there, One of the PreciousStone users contacted me about EzChestShop not working with PreciousStones, and the problem was this side, and it happens when a GUI opens for a player. EzChestShop uses InteractionEvent for opening the shop menu. However, PreciousStones uses InventoryOpenEvent and then checks if the player has the permission for opening that inventory in the protected zone, only by checking the block which the user is looking at, during the event. I assume that's not the right way of handling it thou and recommend changing the way or making sure that the GUI is not opened by another plugin. (I'm pretty sure other plugins may face a similar issue).

but for a temporary solution, here is the fix.

Kind Regards