Skip to main content

player / bot Object

The player or bot object represents a real Minecraft client connected to the test server.

Methods

player.chat(message)

Sends a chat message or command.
message
string
required
The message or command to send.

player.gui(options)

Waits for a GUI to open matching the title and returns a live handle.
options.title
string | RegExp
required
Pattern to match GUI title.

Properties

inventory
Inventory
Access the player’s current inventory state.
username
string
The randomly generated or assigned name of the bot.

server Object

The server object gives you control over the backend Minecraft server.

Methods

server.execute(command)

Executes a command from the server console.
command
string
required
The console command to execute.