Color methods

Discussion in 'Spigot Plugin Development' started by harveycat1, May 5, 2017.

  1. Anyone got a quick method fix to allow me to translate the color codes for a List i cannot translate it using my method as it is not able to translate the color codes of a list

    Code (Text):
            ItemStack head = new ItemStack(Material.SKULL_ITEM, 1, (short) SkullType.PLAYER.ordinal());
            SkullMeta headm = (SkullMeta) head.getItemMeta();
            List<String> headl = new ArrayList();
            headm.setDisplayName(color(plugin.getConfig().getString("GUI.Main.Info.Name")));
            headm.setOwner(p.getName());
            headl.addAll(plugin.getConfig().getStringList("GUI.Main.Info.Lore"));
            headm.setLore(headl);
            head.setItemMeta(headm);
     
     
  2. Probably should just loop through the list. And translate the color codes 1 by 1.