我尝试在 Velocity 上使用 BungeeCord 消息 channel 。
我知道这项工作。这是我的代码:
player.sendMessage("§aWait...");
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("Connect");
out.writeUTF("Lobby2");
player.sendPluginMessage(plugin, "BungeeCord", out.toByteArray());
如果我使用 BungeeCord 作为代理,此代码可以工作。但如果我使用 Velocity,则不会。
最佳答案
从较新的 Minecraft 版本开始,建议使用 bungeecord:main
channel (尽管 Velocity 应该可以很好地支持这两种 channel )。
此外,请务必确保您使用的 Velocity 版本高于 v1.1.0 ( as seen here )。
另一件事,虽然这不是必需的(并且可能不会改变此问题的任何内容),但建议也 enable velocity-support .
如果您仍然遇到此问题,最好在 Velocity Github repository 上创建问题,这样他们也许能够为您提供进一步的帮助!
关于velocity - 如何在 Velocity 上使用 BungeeCord 消息 channel ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71283635/