LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[BUG]: Player::Kill doesn't result in death

Open OMEGA3065 opened this issue 7 months ago • 0 comments

Before You Report

  • [x] I have searched for existing reports of this bug, and this bug report is unique.

Version

1.1.6

Description

When calling Player::Kill() or it's overloads, the player doesn't die if they have SpawnProtection with the default config.

To Reproduce

  1. Give the SpawnProtected effect to the player.
  2. Run player.Kill() from plugin (or just deal damage using an universal damage handler)
  3. Player in fact doesn't die

Expected Behavior

Player should in fact die.

Additional Information

Even if resolved, I think there should be an option for developers to bypass the config setting even if it's enabled. Like either dealing -2 damage (sounds horrible) or another method.

OMEGA3065 avatar Apr 28 '26 15:04 OMEGA3065