Ultimate colour change

This commit is contained in:
Sam 2016-09-03 18:24:44 +01:00
parent 57292414c6
commit 7eb148cc59

View File

@ -4,6 +4,7 @@ import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.bukkit.ChatColor;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@ -41,8 +42,10 @@ public abstract class Ultimate extends Perk
player.getInventory().addItem(Quiver.SUPER_ARROW);
}
ChatColor teamColor = Manager.GetGame().GetTeam(player).GetColor();
player.sendMessage(F.main("Game", "Activated " + F.skill(GetName())));
UtilServer.broadcast(C.cGreenB + player.getName() + C.cWhiteB + " activated their " + C.cGreenB + GetName() + C.cWhiteB + ".");
UtilServer.broadcast(teamColor + C.Bold + player.getName() + C.cWhiteB + " activated their " + teamColor + C.Bold + GetName() + C.cWhiteB + ".");
for (Player other : UtilServer.getPlayers())
{