1.8.8 Need help executing bungee plugin using spigot.

Discussion in 'Spigot Plugin Development' started by TGG2006, Jul 31, 2020.

  1. Change "alert" to "/alert"
     
  2. Did that, no effect
     
  3. Hmm
     
  4. Add this to your onenable
    Code (Text):
    this.getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
     
  5. Already in there
     
  6. Code (Text):
                    ByteArrayOutputStream b = new ByteArrayOutputStream();
                    DataOutputStream out = new DataOutputStream(b);

                    try {
                        out.writeUTF("Connect");
                        out.writeUTF("lobby");
                    } catch (IOException ex){
                        System.err.println("Error:");
                        ex.printStackTrace();
                    }
               
               
                   p.sendPluginMessage(KeineKohle.getPlugin(KeineKohle.class), "BungeeCord", b.toByteArray());
    But before try to change this.getServer... to this
    Code (Text):

            Bukkit.getMessenger().registerOutgoingPluginChannel(this,"BungeeCord");