# Package net.axay.kspigot.pluginmessages

## Types

BungeePluginMessagePlayerSpecific
Link copied to clipboard
interface BungeePluginMessagePlayerSpecific
Content copied to clipboard
BungeePluginMessageRandomPlayer
Link copied to clipboard
interface BungeePluginMessageRandomPlayer
Content copied to clipboard
PluginMessageConnect
Link copied to clipboard
class PluginMessageConnect(servername: String) : BungeePluginMessagePlayerSpecific
Content copied to clipboard
Sends the sending player to the given server
PluginMessageGetServers
Link copied to clipboard
class PluginMessageGetServers(response: (List<String>) -> Unit) : BungeePluginMessageRandomPlayer
Content copied to clipboard
Responds with the names of all servers in the BungeeCord network.
PluginMessagePlayerCount
Link copied to clipboard
class PluginMessagePlayerCount(servername: String, response: (Int) -> Unit) : BungeePluginMessageRandomPlayer
Content copied to clipboard
Responds with the amount of players currently online on the given server.
PluginMessagePlayerCountAllServers
Link copied to clipboard
class PluginMessagePlayerCountAllServers(response: (Int) -> Unit) : BungeePluginMessageRandomPlayer
Content copied to clipboard
Responds with the amount of players currently online on all servers.
PluginMessagePlayerList
Link copied to clipboard
class PluginMessagePlayerList(servername: String, response: (List<String>) -> Unit) : BungeePluginMessageRandomPlayer
Content copied to clipboard
Responds with the names of all players currently online on the given server.
PluginMessagePlayerListAllServers
Link copied to clipboard
class PluginMessagePlayerListAllServers(servername: String, response: (List<String>) -> Unit) : BungeePluginMessageRandomPlayer
Content copied to clipboard
Responds with the names of all players currently online on all servers.

## Functions

sendPluginMessageToBungeeCord
Link copied to clipboard
fun sendPluginMessageToBungeeCord(player: Player, subChannel: String, content: List<String>? = null, responseTimeout: Int = 20, onResponse: (message: DataInputStream) -> Unit? = null)
Content copied to clipboard
Sends a plugin message on the "BungeeCord" channel.
sendPluginMessageToBungeeCordRandomPlayer
Link copied to clipboard
fun sendPluginMessageToBungeeCordRandomPlayer(subChannel: String, content: List<String>? = null, responseTimeout: Int = 20, onResponse: (message: DataInputStream) -> Unit? = null): Boolean
Content copied to clipboard
Chooses a random player to send the message.