PHP: public static String prefix = "§a§lParties §8§l| "; It works, but in-game, it only shows like the color white. Can anyone help?
Try: Code (Java): public static String prefix = ChatColor.translateAlternateColorCodes('&', "&a&lParties &8&l| ");
That's odd, it works fine for me. Would you mind showing a line of code where you are trying to use the prefix?
Here: Code (Java): { p.sendMessage(new ComponentBuilder(prefix).append("Not enough arguments.").color(ChatColor.DARK_RED).create()); p.sendMessage(new ComponentBuilder(prefix).color(ChatColor.DARK_GRAY).append("/p invite <player>").color(ChatColor.GREEN).create()); }
Why aren't you just you just sending them a regular message? Why are you using TextComponents? Doesn't look like you need to be.