1.13.2 ConsoleCommandSender#sendMessage() sending blank spaces

Discussion in 'Spigot Plugin Development' started by beccar_mt, Jul 6, 2021.

  1. I'm trying to add colored console messages for my plugins, but every line printed has a space between it, even though i added no space on the code:

    [​IMG]

    Code (Java):

        @Override
        public void onEnable() {
            Bukkit.getConsoleSender().sendMessage("asd asd asdasdasd asdasd asd");
            Bukkit.getConsoleSender().sendMessage("asd asd asdasdasd asdasd asd");
            Bukkit.getConsoleSender().sendMessage("asd asd asdasdasd asdasd asd");
            Bukkit.getConsoleSender().sendMessage("asd asd asdasdasd asdasd asd");
            Bukkit.getConsoleSender().sendMessage("asd asd asdasdasd asdasd asd");
        }
     
     
  2. Okay so the problem seems to be java 16, but i have no idea why. I tested the same code with java 8 and java 11 and it worked without the spaces.