When LifeSupport is active, when players hit 0 HP, items still get removed then LifeSupport kicks in.
If players have LifeSupport on, it would be great to not remove the items when their health goes to 0 or below
When LifeSupport is active, when players hit 0 HP, items still get removed then LifeSupport kicks in.
If players have LifeSupport on, it would be great to not remove the items when their health goes to 0 or below
It appears that this issue can be resolved by updating Restore Upon Death from using the OnPlayerDeath hook to use the OnEntityDeath hook instead, which is only called if the player is actually being killed. This is because these two plugins have different concerns.
OnPlayerDeath -> OnEntityDeath on line 43 of RestoreUponDeath.cs and let us know if that works. I will give it a go and let you know.WhiteThunder
It appears that this issue can be resolved by updating Restore Upon Death from using the
OnPlayerDeathhook to use theOnEntityDeathhook instead, which is only called if the player is actually being killed. This is because these two plugins have different concerns.This follows the typical pre/post hook pattern, so updating Restore Upon Death to use the post hook variation should solve the issue, though I haven't tested it. If you want to try this change, simply rename
- Life Support is concerned with potentially blocking death (pre-death)
- Restore Upon Death is concerned with detecting player death (post-death)
OnPlayerDeath->OnEntityDeathon line 43 of RestoreUponDeath.cs and let us know if that works.
WhiteThunder
It appears that this issue can be resolved by updating Restore Upon Death from using the
OnPlayerDeathhook to use theOnEntityDeathhook instead, which is only called if the player is actually being killed. This is because these two plugins have different concerns.This follows the typical pre/post hook pattern, so updating Restore Upon Death to use the post hook variation should solve the issue, though I haven't tested it. If you want to try this change, simply rename
- Life Support is concerned with potentially blocking death (pre-death)
- Restore Upon Death is concerned with detecting player death (post-death)
OnPlayerDeath->OnEntityDeathon line 43 of RestoreUponDeath.cs and let us know if that works.
Just tested with the OnEntityDeath function instead of the OnPlayerDeath function.
You were 100% right - no issues when LifeSupport was on.
when LifeSupport was off, i died and my inventory was removed to 75% (which is what was in the config for this plugin).
You never cease to amaze with your skillset. Thank you @WhiteThunder!