VitalCloudNet4Driver
object VitalCloudNet4Driver
If you are running a CloudNET server, this will be the class to use when you want to communicate with it. This class is a wrapper for the CloudNET-Driver module and provides easier-to-use APIs for it.
Functions
Link copied to clipboard
Gets a single server by its serverName, e.g. Lobby-1, Lobby-2, etc.
Link copied to clipboard
fun getCloudServers(predicate: Predicate<ServiceInfoSnapshot> = Predicate { true }): List<ServiceInfoSnapshot?>
Gets all currently running servers that match the given predicate.
Gets all servers of the given taskName, e.g. Lobby, Bedwars.
Link copied to clipboard
Gets the ServiceTask of the given taskName.
Link copied to clipboard
Gets the ServiceTask by calling getServerTask with the given taskName and attempts to start a new server from it. If no task exists for the given taskName, this function does nothing.
Link copied to clipboard
Stops the server with the given serverName. If no server was found with the given serverName, this function does nothing.