Items in Bagpacks still remain for players who slept in Outpost even after getting killed.
Tested it.
Put items in bag packs > afk/offline in outpost > get kills by NPC cause offline too long in outpost > respawn > items still remain in bag packs.
It acts like a bank now. XD
Exploit for getting killed in outpostSolved
Will take a look. Thanks for reporting.
To help with reproduction, please paste your config.
Can you reproduce with other types of offline death? Like throwing c4 and logging out, or noclipping into the sky and disconnecting to plummet to your death.
Merged post
This bug appears to be old. Backpacks uses the OnEntityDeath hook to determine when a player is "killed" by normal means, in order to drop their backpack. However, players are killed in safe zones by directly killing the entity, bypassing the "death" state, therefore never calling the OnEntityDeath hook.
I've fixed this on the develop branch of the plugin's GitHub repository if you want to test it out. It will be in the v3.5.0 release.
WhiteThunder
Will take a look. Thanks for reporting.
To help with reproduction, please paste your config.
Can you reproduce with other types of offline death? Like throwing c4 and logging out, or noclipping into the sky and disconnecting to plummet to your death.
Merged post
This bug appears to be old. Backpacks uses theOnEntityDeathhook to determine when a player is "killed" by normal means, in order to drop their backpack. However, players are killed in safe zones by directly killing the entity, bypassing the "death" state, therefore never calling theOnEntityDeathhook.
I've fixed this on the develop branch of the plugin's GitHub repository if you want to test it out. It will be in the v3.5.0 release.
Noted, will test it out further. :)