fixed nametag color in paintball

This commit is contained in:
Chiss 2014-11-23 11:16:01 +11:00
parent b3a9410e54
commit f0c87e439a
3 changed files with 4 additions and 4 deletions

View File

@ -333,7 +333,7 @@ public class Paintball extends TeamGame
player.setVelocity(new Vector(0,1.2,0));
_doubles.put(player, new PlayerCopy(this, player));
_doubles.put(player, new PlayerCopy(this, player, GetTeam(player).GetColor()));
}
// @EventHandler

View File

@ -19,7 +19,7 @@ public class PlayerCopy
private Skeleton _ent;
private Player _owner;
public PlayerCopy(Game host, Player owner)
public PlayerCopy(Game host, Player owner, ChatColor nameColor)
{
Host = host;
@ -36,7 +36,7 @@ public class PlayerCopy
//Armor
_ent.getEquipment().setArmorContents(owner.getInventory().getArmorContents());
_ent.setCustomName(C.cWhite + C.Bold + C.Scramble + "XX" + ChatColor.RESET + " " + C.cYellow + owner.getName() + " " + C.cWhite + C.Bold + C.Scramble + "XX");
_ent.setCustomName(C.cWhite + C.Bold + C.Scramble + "XX" + ChatColor.RESET + " " + nameColor + owner.getName() + " " + C.cWhite + C.Bold + C.Scramble + "XX");
_ent.setCustomNameVisible(true);
//Disguise

View File

@ -540,7 +540,7 @@ public class WitherGame extends TeamGame implements IBlockRestorer
player.setVelocity(new Vector(0,1.2,0));
_doubles.put(player, new PlayerCopy(this, player));
_doubles.put(player, new PlayerCopy(this, player, ChatColor.YELLOW));
}
public void playerIn(final Player player, final LivingEntity copy)