OpenInv

4M Downloads

Inventory Modify Event

creatorfromhell opened this issue ยท 2 comments

commented

Reason

There really should be an inventory that is called when an inventory has been closed from the /openinv command with write access. This would allow other plugins that utilize offline player inventories to correctly adapt accordingly.

commented

Sorry about the slow reply, pretty swamped lately.

Definitely something we can slip in here:

this.accessor.getPlayerDataManager().inject(player).saveData();

This made me think of the old issue with "I want OI to open X SQL inventory save plugin's data" but the save event actually would be irrelevant for that case because if OI lets them load their own Player, they can just override their loaded player's save method.

๐Ÿ‘ Just let me know when this gets implemented.

commented

Sorry about the slow reply, pretty swamped lately.

Definitely something we can slip in here:

this.accessor.getPlayerDataManager().inject(player).saveData();

This made me think of the old issue with "I want OI to open X SQL inventory save plugin's data" but the save event actually would be irrelevant for that case because if OI lets them load their own Player, they can just override their loaded player's save method.