#Bungeecord channels help

1 messages · Page 1 of 1 (latest)

strong vault
#
var baos = new ByteArrayOutputStream();
var dos = new DataOutputStream(baos);
try {
    dos.writeUTF("Connect");
    dos.writeUTF("testserver");
    player.sendPluginMessage(this, "BungeeCord", baos.toByteArray());
} catch (IOException e) {
    e.printStackTrace();
}

Bukkit.getScheduler().runTaskLater(this, () -> {
    var baos2 = new ByteArrayOutputStream();
    var dos2 = new DataOutputStream(baos2);
    try {
        dos2.writeUTF("Forward");
        dos2.writeUTF("ALL");
        dos2.writeUTF("testing:channel");
        dos2.writeUTF("Should log this");
        player.sendPluginMessage(this, "BungeeCord", baos2.toByteArray());
    } catch (IOException e) {
        e.printStackTrace();
    }
}, 60);
```The player gets sent to `testserver`, but the message is never logged, why's that?

This is a quick and dirty test command, I don't care if it's not clean code right now, just need to verify the concept works
#

Wait nevermind I realized the issue