MyEssentials / MyTown2

Version 2 of MyTown - A Minecraft Server Protection Mod
The Unlicense
35 stars 22 forks source link

Send a InventoryCloseEvent if the interact event is cancelled #515

Open Eufranio opened 7 years ago

Eufranio commented 7 years ago

Some GUIs open client-side, and we can't protect from players opening them (e.g Draconic Evolution's flux gate, Wireless Redstone's stuff). You could send a InventoryCloseEvent if the player don't have permission to access the protected block.