1.8.8 Spigot not executing bungee commands.

Discussion in 'Spigot Plugin Development' started by TGG2006, Aug 1, 2020 at 10:47 PM.

  1. My plugin is not executing any commands coming into it that are for Bungeecord. My code:

    Code (Java):
        public static void sendBungee(Player p) {
            ByteArrayOutputStream b = new ByteArrayOutputStream();
            DataOutputStream out = new DataOutputStream(b);
            try {
                System.out.println("test2!");
                out.writeUTF("/alert test");
                System.out.println("test3!");
            } catch(Exception e) {
                e.printStackTrace();
            }
           
           

            p.sendPluginMessage(getPlugin(Main.class), "BungeeCord", b.toByteArray());
        }
     
  2. SteelPhoenix

    Moderator

    "/alert test" is not a known subchannel, so nothing happens. What did you expect to happen?
     
  3. I was expecting it to broadcast to every server through bungee