Major update of the code #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
As said in the message, here are ALL the fixes and optimization I applied in AdminCmd.
Most important ones are correction of the bug when opening an Offline Inventory, changing it and the player connect.
Also corrected in the other sense, opening inventory of a connected player and he disconnect.
Using a cache of the chest to avoid creation of other chest each time the command is called, permit to have more then 1 user on the same "chest".
Using the new Bukkit API : onClose() method.
Thanks for the update, I manually merged it in and will close this pull request. Though there is a tiny problem with the code you provided (openinv an online player, player goes offline, edit inventory, player comes back online with old inventory). This was fixed as I merged the code.
Thanks for the bug report :) I'll correct that on my code too.
Pull request closed