MCRcon

Rcon class for connections.

Members

Functions

command
auto command(string command)

Shorthand for send(MCRconPacket.Command, command)

connect
void connect(string host, short port)

Connects to host:port and creates a new socket.

disconnect
void disconnect()

Disconnects from the server.

login
auto login(string password)

Shorthand for send(MCRconPacket.Login, password)

send
MCRconResponse send(MCRconPacket packetID, string data)

Sends a packet containing data with packetID as ID and returns the data synchronously.

Properties

isConnected
bool isConnected [@property getter]

Returns if still connected to the server.

Meta