Functions

Link copied to clipboard
open fun SpigotPlayer.connect(serverName: String)

Gets the PlayerExecutor for the given player and tries to connect the player to the given serverName. Note that the serverName is the fully qualified service name, e.g. Lobby-1, Lobby-2, etc.

Link copied to clipboard
open fun SpigotPlayer.getCloudServer(): ServiceInfoSnapshot?

Scans all currently active servers for the first server which the given player is currently connected to. If the player is not online, this function returns null.

Link copied to clipboard
open fun SpigotPlayer.getNonProxyCloudServer(): ServiceInfoSnapshot?

Scans all currently active game servers (non-proxy) for the first server which the given player is currently connected to. If the player is not online, this function returns null.

Link copied to clipboard
open fun SpigotPlayer.getPlayerExecutor(): PlayerExecutor

Gets the PlayerExecutor instance for the given player.

Link copied to clipboard
open override fun getPlayerUniqueId(player: SpigotPlayer): @NotNull UUID

Internal function to get the UUID of the given player.

Link copied to clipboard
open fun getTotalPlayerCount(taskName: String): Int

Gets the total player count for all services of the given taskName. This function should only be used to get a total sum of ALL SERVERS OF THE GIVEN taskName.

Link copied to clipboard
open fun ServiceInfoSnapshot.isProxy(): Boolean

Checks it the given ServiceInfoSnapshot is a known Minecraft proxy server, like BungeeCord, Velocity, etc.

Link copied to clipboard
open fun SpigotPlayer.runCommand(command: String)

Gets the PlayerExecutor for the given player and executes the given command as the player.