雷霆嘎巴LT
rt,开发版发根本没人回

哈士企
本帖最后由 哈士企 于 2022-7-24 11:27 编辑
  1. for (ProxiedPlayer player : ProxyServer.getPlayers()) {
  2.         player.sendMessage(new TextComponent("Hello world"));
  3. }
复制代码

雷霆嘎巴LT

应该导入哪个类

哈士企

package net.md_5.bungee.api
里面的
ProxyServer class

这有文献你可以看
https://ci.md-5.net/job/BungeeCo ... pi/ProxyServer.html

雷霆嘎巴LT
哈士企 发表于 2022-7-24 11:28
package net.md_5.bungee.api
里面的
ProxyServer class

导入了:
提示这个:无法解析符号 'BungeeCord'

哈士企
雷霆嘎巴LT 发表于 2022-7-24 11:39
导入了:
提示这个:无法解析符号 'BungeeCord'
  1. for (ProxiedPlayer player : ProxyServer.getPlayers()) {
  2.         player.sendMessage(new TextComponent("Hello world"));
  3. }
复制代码

这个呢

雷霆嘎巴LT

刚刚自己解决了,谢了,等我测试下

雷霆嘎巴LT

顺便问下,如何获取所有子服玩家发送的消息