clientComp.character.send(new DoHealEvent(amount, clientComp.character));
}
@Command(shortDescription = "Set max health", runOnServer = true)
public String setMaxHealth(@CommandParam("max") int max, EntityRef client) {
ClientComponent clientComp = client.getComponent(ClientComponent.class);
HealthComponent health = clientComp.character.getComponent(HealthComponent.class);
if (health != null) {
doHeal(clientComp.character, health.maxHealth, clientComp.character, health);
}
return "Max health set to " + max;