Merge branch 'minor-next' into major-next

This commit is contained in:
Dylan K. Taylor
2023-07-24 12:07:55 +01:00
55 changed files with 247 additions and 224 deletions

View File

@ -53,7 +53,7 @@ class KillCommand extends VanillaCommand{
return true;
}
$player->attack(new EntityDamageEvent($player, EntityDamageEvent::CAUSE_SUICIDE, 1000));
$player->attack(new EntityDamageEvent($player, EntityDamageEvent::CAUSE_SUICIDE, $player->getHealth()));
if($player === $sender){
$sender->sendMessage(KnownTranslationFactory::commands_kill_successful($sender->getName()));
}else{