程序包 org.bukkit
类 Server.Spigot
java.lang.Object
org.bukkit.Server.Spigot
- 封闭接口:
- Server
- 
构造器概要构造器
- 
方法概要修饰符和类型方法说明voidbroadcast(@NotNull BaseComponent... components) 将多个聊天消息组件作为单条消息广播给所有在线玩家.voidbroadcast(BaseComponent component) 向全体玩家广播一条消息.voidrestart()重启服务器.
- 
构造器详细资料- 
Spigotpublic Spigot()
 
- 
- 
方法详细资料- 
getConfig
- 
restartpublic void restart()重启服务器. 如果服务器管理员没有配置/未正确配置"spigot.yml"中的重启配置, 服务器将停止运行.原文:Restart the server. If the server administrator has not configured restarting, the server will stop. 
- 
broadcast向全体玩家广播一条消息.原文:Sends the component to the player - 参数:
- component- 要发送的聊天消息组件
 
- 
broadcast将多个聊天消息组件作为单条消息广播给所有在线玩家.原文:Sends an array of components as a single message to the player - 参数:
- components- 要发送的聊天消息组件
 
 
-