feat: better kill command, Host Privileges check (#135)

i changed a bit the kill command because it was not working properly,
then i added a check for HostPrivileges for each command
This commit is contained in:
Lord Cambion
2026-05-31 18:48:53 +03:00
committed by GitHub
parent 128651de24
commit 2417eb4562
6 changed files with 387 additions and 9 deletions
+7 -1
View File
@@ -1170,7 +1170,13 @@ bool EnderDragon::hurt(shared_ptr<MultiEntityMobPart> MultiEntityMobPart, Damage
bool EnderDragon::hurt(DamageSource *source, float damage)
{
return false;
if (source == DamageSource::outOfWorld)
{
setSynchedAction(e_EnderdragonAction_Sitting_Scanning, true);
reallyHurt(source, getMaxHealth() + 1);
return true;
}
return false;
}
bool EnderDragon::reallyHurt(DamageSource *source, float damage)