Learn R Programming

miner (version 0.2.2)

mc_connect: Create a connection to a Minecraft server

Description

Create a connection to a Minecraft server

Usage

mc_connect(hostname = Sys.getenv("SPIGOT_HOSTNAME", "localhost"),
  port = Sys.getenv("SPIGOT_PORT", "4711"))

Arguments

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.

Value

Nothing returned, the connection is cached within the package namespace.

Examples

Run this code
# NOT RUN {
mc_connect()
getPlayerIds()
mc_close()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab