cnaude / Scavenger

Fork of Scavenger originally created by SirHedgehog
MIT License
8 stars 6 forks source link

Items Disappearing After Respawn #28

Closed SoSeDiK closed 3 years ago

SoSeDiK commented 7 years ago

If a player dies and respawns in the place of death, then all the items he picked up disappear. Here is a small video: https://youtu.be/8dB4t0A64rA

cnaude commented 7 years ago

Please post your Scavenger/config.yml and debug output from the logs. You can enable debug mode in the config.yml.

SoSeDiK commented 7 years ago

Config: https://pastebin.com/te9mxj1j Debug: https://pastebin.com/J5ZnEvrN

SoSeDiK commented 6 years ago

Any progress on this? By the way, it also conflicts with plugins that have soulbound feature for items. This happens if SingleItemKeeps or SlotBasedRecovery is enabled. I set RestoreDelayTicks to 100 and yes, if I somehow get new items before the restore, then they will disappear.

cnaude commented 6 years ago

Hi, I have not had a chance to look at this. The pastebin links have been expired. Do you have a current config and debug output? What is soulbond?

EvilOlaf commented 6 years ago

Maybe the plugin named link that: https://www.spigotmc.org/resources/soulbound-revived-1-9-1-12.26270/ @cnaude

SoSeDiK commented 6 years ago

@cnaude Soulbound is a feature that keeps item after death (It is in many plugins like MyItems or DivineItemsRPG, also in Slimefun; if short, that's exactly what Scavenger do, but only for special items from other plugins). Yes, here is my config and debug: Config: https://pastebin.com/zX0yK4Dt Debug: https://pastebin.com/3qb5pUy7 Short story: • I had an enchanted book and wood. • I killed myself and respawned. • After respawning I picked up my wood. • Plugin restored my book and replaced wood with air.

Another example (easy steps to reproduce): Let's make that the plugin will restore only regular books. Then set 'RestoreDelayTicks:' to 200. Get a book, commit suicide, respawn. Now you have 10 seconds (200 ticks) to get any items you want. After 10 seconds everything will disappear and you will get only your book.

P.S. Changing 'RestoreDelayTicks:' to 0 doesn't help. I also tried disabling 'SlotBasedRecovery' but had the same result.