Skip to content

Rcon sample

Using the RCON sample bundle

The RCON sample bundle in samples/rcon-minecraft shows how to send a command to a Minecraft server.


You will need a working nodecg-io installation. If you have non yet take a look at installation guide. You may need to install this bundle, so take a look at the “Try an included sample”-Guide. It will also tell you how to log in and how to use the GUI.

You also need:

Configure the RCON sample bundle

  1. In NodeCG, create a new RCON service instance.

  2. Enter the host, port, and password of the RCON connection. This can be found in the file (rcon.port, rcon.password):

        "host": "localhost",
        "port": 25575,
        "password:": "ThisIsAVeryGoodPassword"

    After entering it, click save.

  3. Set the sample's (rcon-minecraft) dependency to be the newly created service instance (of type rcon).

  4. In the NodeCG console you will see a list with all online players. It will also send a /say command to the Minecraft server.