hexle-at / ItemEffects

ItemEffects: Add (potion) effects to any item.
https://www.spigotmc.org/resources/item-effects.91208/
MIT License
2 stars 0 forks source link

Report: Effects removed when leaving & joining the server #15

Open 4L0N50asd opened 1 year ago

4L0N50asd commented 1 year ago

So i just got an issue in my server, a player got the Hero of the village effect and he left and joined the server and found that the plugin removed the effect.

I already know that in config there's an option "updateEffectsOnCommand", which is set to false to prevent the plugin removing other effects from a player when using a command. But this does not prevent removing effects when joining/leaving the server.

Please, if you could add an option in config to enable/disable removing effects when joining/leaving the server it would be nice.

Also i found another "bug". If you have an item with an effect, if you get that effect by a natural/normal way, you can remove it instantly by just putting that item in your hand and removing it from your hand. Example; you have an item with Darkness effect. When you get into an Ancient City, a Sculk shrieker will give you 12s of darkness. If you put that item with darkness in your hand and remove it from your hand, you can instantly remove darkness effect from you.

This can happen with any other effect.