Description Usage Arguments Value Examples
Create a connection to a Minecraft server
1 2 3 4 | mc_connect(
hostname = Sys.getenv("SPIGOT_HOSTNAME", "localhost"),
port = Sys.getenv("SPIGOT_PORT", "4711")
)
|
hostname |
A character string with the hostname or IP address for the Minecraft Spigot server to which you want to connect. |
port |
An integer giving the port to use for the connection. |
Nothing returned, the connection is cached within the package namespace.
1 2 3 4 5 6 | ## Not run:
mc_connect()
getPlayerIds()
mc_close()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.