mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-04 04:51:41 +00:00
Properly apply damage causes
This commit is contained in:
parent
8485bd44f9
commit
7d6714f713
2 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,7 @@ public class Commandkill extends EssentialsLoopCommand {
|
|||
if (ede.isCancelled() && sender.isPlayer() && !ess.getUser(sender.getPlayer()).isAuthorized("essentials.kill.force")) {
|
||||
return;
|
||||
}
|
||||
ede.getEntity().setLastDamageCause(ede);
|
||||
matchPlayer.damage(Short.MAX_VALUE);
|
||||
|
||||
if (matchPlayer.getHealth() > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue