lishid / OpenInv

Open anyone's inventory as a chest, real-time!
GNU General Public License v3.0
120 stars 97 forks source link

Disable drop item in 1 and 2 slots #57

Closed DardBrinza closed 7 years ago

DardBrinza commented 7 years ago

I use customJoinItems and openinv, i don't know why, but this plugin blocked drop item in 1 and 2 slots in inventory. Latest build paper spigot 1.8.8, latest version openinv and customjoinitems, in console no errors.

Jikoo commented 7 years ago

OpenInv does not handle the PlayerDropItemEvent at all. Sounds like CustomJoinItems thinks you have 2 un-droppable items. Check your CustomJoinItems config.

DardBrinza commented 7 years ago

No, if i delete openinv, all works fine, my customjoinitems config don't use function to disable drop item

Jikoo commented 7 years ago

OpenInv does not disable dropping functionality unless you do not have permission to modify an open OpenInv inventory implementation, an ISpecialPlayerInventory or an ISpecialEnderChest. In that case, you would not be able to modify any slots at all. Relevant listener here.

CustomJoinItems' movement blocking will also perform drop prevention.