Package net.axay.kspigot.pluginmessages

Types

BungeePluginMessagePlayerSpecific
Link copied to clipboard
interface BungeePluginMessagePlayerSpecific
BungeePluginMessageRandomPlayer
Link copied to clipboard
interface BungeePluginMessageRandomPlayer
PluginMessageConnect
Link copied to clipboard
class PluginMessageConnect(servername: String) : BungeePluginMessagePlayerSpecific
Sends the sending player to the given server
PluginMessageGetServers
Link copied to clipboard
class PluginMessageGetServers(response: (List<String>) -> Unit) : BungeePluginMessageRandomPlayer
Responds with the names of all servers in the BungeeCord network.
PluginMessagePlayerCount
Link copied to clipboard
class PluginMessagePlayerCount(servername: String, response: (Int) -> Unit) : BungeePluginMessageRandomPlayer
Responds with the amount of players currently online on the given server.
PluginMessagePlayerCountAllServers
Link copied to clipboard
class PluginMessagePlayerCountAllServers(response: (Int) -> Unit) : BungeePluginMessageRandomPlayer
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
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
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)
Sends a plugin message on the "BungeeCord" channel.
fun sendPluginMessageToBungeeCordRandomPlayer(subChannel: String, content: List<String>? = null, responseTimeout: Int = 20, onResponse: (message: DataInputStream) -> Unit? = null): Boolean
Chooses a random player to send the message.