diff --git a/src/de/steamwar/bungeecore/commands/TeamCommand.java b/src/de/steamwar/bungeecore/commands/TeamCommand.java index e652d8db..f1e2fda6 100644 --- a/src/de/steamwar/bungeecore/commands/TeamCommand.java +++ b/src/de/steamwar/bungeecore/commands/TeamCommand.java @@ -45,22 +45,26 @@ public class TeamCommand extends BasicCommand { private static final List> COLOR_CODES = new ArrayList<>(); static { - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§4", 1), "4")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("brick", "§c"), "c")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§6", 14), "6")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§e", 11), "e")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§2", 2), "2")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§a", 10), "a")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§b", 12), "b")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§3", 6), "3")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§1", 4), "1")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§9", 6), "9")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§d", 9), "d")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§5", 13), "5")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§f", 15), "f")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§7", 7), "7")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§8", 8), "8")); - COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§0", 0), "0")); + addColor("4", 1); + addColor("c", 15); + addColor("6", 14); + addColor("e", 11); + addColor("2", 2); + addColor("a", 10); + addColor("b", 12); + addColor("3", 6); + addColor("1", 4); + addColor("9", 6); + addColor("d", 9); + addColor("5", 5); + addColor("f", 15); + addColor("7", 7); + addColor("8", 8); + addColor("0", 0); + } + + private static void addColor(String color, int colorCode) { + COLOR_CODES.add(new SWListInv.SWListEntry(new SWItem("§" + color, colorCode), color)); } public TeamCommand() {