An integration of the BuyCraft API with Vanilla Minecraft Servers using Node.js
An integration of the BuyCraft API with Vanilla Minecraft Servers using Node.js
In your Minecraft server.properties, make sure you have:
enable-rcon=true
rcon.password=<your password>
rcon.port=<1-65535>
Clone repository onto a server (or download this onto the server), edit config.json
(see "Configuration" for more info) and change the options, and then, in the repository folder:
$ cd buycraft-vanilla
$ chmod +x buycraft install.sh
$ ./install.sh
$ ./buycraft start
Then to stop:
$ ./buycraft stop
The log will be at buycraft.log
, be sure to look at it if something goes wrong.
This file will be auto generated for you by install.sh
{
"BUYCRAFT_API_KEY": "1234", /* Your BuyCraft API Key */
"INTERVAL_BETWEEN_COMMAND_SENT": 10, /* interval between each command is sent to server */
"MINECRAFT_SERVER_RCON_IP": "example.com", /* minecraft server ip (make sure you have enabled rcon) */
"MINECRAFT_SERVER_RCON_PORT": <1-65535>, /* minecraft server rcon port */
"MINECRAFT_SERVER_RCON_PASSWORD": "<your password>", /* minecraft server rcon password */
"DEBUG": false /* dev debugging */
}
None.
If you have any suggestions or feature requests, feel free to add an issue and I will take a look and possibly add it to the "Upcoming" section!
MIT. See LICENSE
.