Add chicken attack info message

Every time chicken attack is triggered for a player, a chat message will
be displayed that explains why the player is being attacked by chickens.

Also, two debug messages were removed, since they were no longer used.
This commit is contained in:
Thanos Paravantis 2016-05-30 12:39:17 +03:00
parent d1f94bcba5
commit d11c3c76eb
1 changed files with 1 additions and 3 deletions

View File

@ -73,12 +73,12 @@ public class ChickenAttack
player.teleport(_center); player.teleport(_center);
UtilTextMiddle.display(C.cRed + "Chicken Attack!", "You ran out of lives.", 5, 40, 5, player); UtilTextMiddle.display(C.cRed + "Chicken Attack!", "You ran out of lives.", 5, 40, 5, player);
UtilPlayer.message(player, F.main("Game", "You ran out lives, Bawk Bawk's followers are attacking you!"));
player.playSound(player.getLocation(), Sound.WITHER_SPAWN, 1.0F, 1.0F); player.playSound(player.getLocation(), Sound.WITHER_SPAWN, 1.0F, 1.0F);
player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, Integer.MAX_VALUE, 1)); player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, Integer.MAX_VALUE, 1));
ensurePlayerKill(player); ensurePlayerKill(player);
System.out.println("Chicken attack triggered for " + player.getName() + ".");
} }
private void ensurePlayerKill(Player player) private void ensurePlayerKill(Player player)
@ -103,8 +103,6 @@ public class ChickenAttack
public void kill(Player player) public void kill(Player player)
{ {
System.out.println("Killed: " + player.getName());
_host.Manager.Clear(player); _host.Manager.Clear(player);
new BukkitRunnable() new BukkitRunnable()