Beispiel #1
0
 @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()));
   }
 }
Beispiel #2
0
 @Override
 public void remove(LivingEntity lEntity) {
   super.remove(lEntity);
   broadcast(
       lEntity.getLocation(), expireText, Messaging.getLivingEntityName(lEntity).toLowerCase());
 }