1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-22 01:48:50 +00:00

feat: 添加Tellraw公告

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-02 21:06:53 +08:00
parent b967cf82bd
commit eae10d3527

View File

@ -46,6 +46,15 @@ public class Tellraw {
System.out.println(Tellraw.create("命令").command("yum list").tip("点击查看插件列表").toJsonString()); System.out.println(Tellraw.create("命令").command("yum list").tip("点击查看插件列表").toJsonString());
} }
/**
* 发送Tellraw公告
*/
public void broadcast() {
for (final Player player : Bukkit.getOnlinePlayers()) {
send(player);
}
}
/** /**
* 命令与提示 * 命令与提示
* *