Add GameTeam.getDyeColor
This commit is contained in:
parent
3dd0bb3e1c
commit
bd26be8a21
@ -8,6 +8,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Color;
|
import org.bukkit.Color;
|
||||||
|
import org.bukkit.DyeColor;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Creature;
|
import org.bukkit.entity.Creature;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
@ -390,6 +391,25 @@ public class GameTeam
|
|||||||
else return "WHITE";
|
else return "WHITE";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DyeColor getDyeColor()
|
||||||
|
{
|
||||||
|
if (GetColor() == ChatColor.WHITE) return DyeColor.WHITE;
|
||||||
|
if (GetColor() == ChatColor.GOLD) return DyeColor.ORANGE;
|
||||||
|
if (GetColor() == ChatColor.LIGHT_PURPLE) return DyeColor.MAGENTA;
|
||||||
|
if (GetColor() == ChatColor.AQUA) return DyeColor.LIGHT_BLUE;
|
||||||
|
if (GetColor() == ChatColor.YELLOW) return DyeColor.YELLOW;
|
||||||
|
if (GetColor() == ChatColor.GREEN) return DyeColor.LIME;
|
||||||
|
if (GetColor() == ChatColor.DARK_GRAY) return DyeColor.GRAY;
|
||||||
|
if (GetColor() == ChatColor.GRAY) return DyeColor.SILVER;
|
||||||
|
if (GetColor() == ChatColor.DARK_AQUA) return DyeColor.CYAN;
|
||||||
|
if (GetColor() == ChatColor.DARK_PURPLE) return DyeColor.PURPLE;
|
||||||
|
if (GetColor() == ChatColor.BLUE) return DyeColor.BLUE;
|
||||||
|
if (GetColor() == ChatColor.DARK_BLUE) return DyeColor.BLUE;
|
||||||
|
if (GetColor() == ChatColor.DARK_GREEN) return DyeColor.GREEN;
|
||||||
|
if (GetColor() == ChatColor.RED) return DyeColor.RED;
|
||||||
|
else return DyeColor.WHITE;
|
||||||
|
}
|
||||||
|
|
||||||
public void SetTeamEntity(Creature ent)
|
public void SetTeamEntity(Creature ent)
|
||||||
{
|
{
|
||||||
_teamEntity = ent;
|
_teamEntity = ent;
|
||||||
|
Loading…
Reference in New Issue
Block a user