所以我試圖派球員,當他們鍵入大廳服務器「/大堂」通過使用此代碼:通過蹦極
Bukkit.getServer().dispatchCommand((Player) player, "server lobby");
但在比賽中,則返回「未知命令。輸入「/ help」尋求幫助。「 我也看到了嘗試這種代碼,但我不知道要放什麼東西來代替「A」,「B」和「C」
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("a");
out.writeUTF("b");
//applies to the player you send it to. aka Kick To Server.
Player player = Bukkit.getPlayerExact("c");
player.sendPluginMessage(this, "BungeeCord", out.toByteArray());
所以我的問題是,爲什麼不第一方法不起作用?另外,你如何使第二個解決方案的工作?我需要在蹦極服務器上放置代碼嗎?