mc_connect: Create a connection to a Minecraft server

Description Usage Arguments Value Examples

View source: R/connect.R

Description

Create a connection to a Minecraft server

Usage

1
2
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

1
2
3
4
5
6
## Not run: 
mc_connect()
getPlayerIds()
mc_close()

## End(Not run)

ropenscilabs/miner documentation built on March 20, 2018, 8:52 p.m.