@Override public void tick(Hero hero) { super.tick(hero); Player player = hero.getPlayer(); double healAmount = hero.getMaxHealth() * tickHealPercent; hero.setHealth(hero.getHealth() + healAmount); hero.syncHealth(); if (hero.isVerbose()) { player.sendMessage(Messaging.createFullHealthBar(hero.getHealth(), hero.getMaxHealth())); } }
@Override public void remove(LivingEntity lEntity) { super.remove(lEntity); broadcast( lEntity.getLocation(), expireText, Messaging.getLivingEntityName(lEntity).toLowerCase()); }