BungeeCord (Bug?) - Color disappear | Links doesn't work

Discussion in 'BungeeCord Plugin Development' started by Skaiz, Apr 22, 2017.

  1. Hi,

    I'm having a problem that I can't click links that are sent via my Bungee plugin, also colors are disappearing on the second line, I have the latest BungeeCord build.

    (As this may be a bug @md_5, I will tag you)

    This is my method to send messages to players:

    Code (Text):
        public static void s(CommandSender s, String m) {
            s.sendMessage(new ComponentBuilder(ChatColor.translateAlternateColorCodes('&', m)).create());
        public static void s(ProxiedPlayer p, String m) {
            p.sendMessage(new ComponentBuilder(ChatColor.translateAlternateColorCodes('&', m)).create());
    Thank you in advance.
    #1 Skaiz, Apr 22, 2017
    Last edited: Apr 22, 2017
  2. electronicboy

    IRC Staff

    You would need to add the urls manually as clickable links using the bungeecord API, vanilla removed automatic parsing of URLs and now the server has to send them, (spigot does work around this, however; by parsing the text manually, Bungeecord doesn't have this luxury, however)
  3. Alright thanks, do you have any idea about color disappearing? Am I doing something wrong?
  4. electronicboy

    IRC Staff

    Couldn't say without seeing the json of what you're sending, but biggest guess would be you're doing something like \n which resets the color (or, using another chat component which has no color info)