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

[BUG] Enderchest Duplication Error #374

Closed
1 task done
Ste3et opened this issue Dec 16, 2022 · 3 comments
Closed
1 task done

[BUG] Enderchest Duplication Error #374

Ste3et opened this issue Dec 16, 2022 · 3 comments
Labels
bug Something isn't working integration Integration Hook

Comments

@Ste3et
Copy link

Ste3et commented Dec 16, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Type of bug

Exploit, Compatibility issue

Environment

- Server Version: Paper Spigot 1.19.3 #338 - 1.19.2 #307
- Shop Version: 1.8.4.x

Server startup log

https://pastebin.com/pXP4qCdF

Shop config files

https://pastebin.com/qsiLaAU4

Error log (if applicable)

No response

Bug description

You can overrite your enderchest content with the opening of an offline player enderchest.
I use the plugin https://www.spigotmc.org/resources/cmi-298-commands-insane-kits-portals-essentials-economy-mysql-sqlite-much-more.3742/ with that i can open offline player enderchests, with the activated enderchest shop feature my personal enderchest will be overriden with the content of the offlineplayer enderchest.

Steps to reproduce

1.) Player A use /cmi ender (offlinePlayer)
2.) Player A go offline
3.) Player A login again to the server
4.) Player A open enderchest via block.
5.) Player A have now the enderchest content from the offlinePlayer

Expected behaviour

That you can't duplicate your enderchest from another user.

Actual behaviour

Your own Enderchest content will be overriden by another OfflinePlayer Enderchest Content.

Other information

If you disable the ENDER_CHEST support from the Shop Plugin everthing works great, i don't know why these feature was enabled.

@snowgears
Copy link
Owner

I will look into this, thanks for the report!

@snowgears snowgears added the integration Integration Hook label Jan 21, 2023
@snowgears
Copy link
Owner

Looks more like an integration request with CMI, rather than a bug. CMI appears to just replicate an offline players enderchest and save as your own temperarily, and shop takes this "fake" inventory and saves it as your own when closing it.

@snowgears
Copy link
Owner

Fixed in 1.8.4.2 (in progress)

I am no longer saving ender chest inventories to a file and have switched to a new system where I load player DAT files and interact directly with NBT for offline enderchests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration Integration Hook
Projects
None yet
Development

No branches or pull requests

2 participants