Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventories don't update properly! #110

Open
adammesa opened this issue Mar 25, 2013 · 4 comments
Open

Inventories don't update properly! #110

adammesa opened this issue Mar 25, 2013 · 4 comments

Comments

@adammesa
Copy link

The error

When switching from class 'A' to class 'B', whatever item slot the player has their "selection" on, is not updated properly. I.e., for one of the kits, if they're holding a sword in item spot 2, when changing to another kit, (which has a bow in that spot) the sword would stay, and the bow would be no where in sight.

Sometimes the inventory for the player doesn't update, but it shows as updated for everyone else... (I.e. they need to reconnect) or, other times where the item is not changed at all, and /invsee reveals that they still have the item...

Any help would be great!

@lol768
Copy link
Collaborator

lol768 commented Mar 29, 2013

Known bug. Not sure why it occurs

@lol768
Copy link
Collaborator

lol768 commented Jun 2, 2013

This doesn't occur in LiteKits which I'd suggest you use for the time being.

@guipenedo
Copy link
Contributor

Maybe you could try e.getPlayer().getInventory().clear();
Before supplyKit on PlayerInteractEvent? Lite kits has that bit. Even though you already clear their inventory on supplyKit, maybe you could give it a trie

@guipenedo
Copy link
Contributor

*try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants