use of de.dytanic.cloudnet.api.network.packet.out.PacketOutUpdateServerInfo in project CloudNet by Dytanic.
the class CloudServer method updateDisable.
public void updateDisable() {
List<String> list = new CopyOnWriteArrayList<>();
for (Player all : Bukkit.getOnlinePlayers()) list.add(all.getName());
ServerInfo serverInfo = new ServerInfo(CloudAPI.getInstance().getServiceId(), hostAdress, port, false, list, memory, motd, Bukkit.getOnlinePlayers().size(), maxPlayers, serverState, serverConfig, template);
CloudAPI.getInstance().getNetworkConnection().sendPacketSynchronized(new PacketOutUpdateServerInfo(serverInfo));
}
Aggregations