git clone https://github.com/open-mc/server
server/node/start
Will create 2 folders and 1 file where the command is run:
world
containing world data as well as config filesproperties.yaml
for server properties which you can edit. You can optionally add a different path after the second command to change where this file is read/created. In this file you can also specify where theworld
directory should be read/createdserver
containing the server code, which you can edit if you are interested in modding this game
You may want to secure your server so that it is accessible outside of localhost:
Make sure you have a domain that points to your server's IP. We recommend no-ip
- Go over to https://certbot.eff.org/instructions, follow their instructions to install certbot for your OS if y 5DF9 ou haven't already.
- Run
certbot certonly --standalone
. - If this is your first time using certbot, enter your email, and agree to their required and optional emails if you wish.
- Enter your domain name(s)
- Once the command has finished, it will show you where the certificate and private key are saved, for example,
/etc/letsencrypt/live/mydomain.com/privkey.key
and/etc/letsencrypt/live/mydomain.com/fullchain.pem
. Copy these - Enter those paths into the
key
andcert
entries in theproperties.yaml
file respectively, and restart the server.
Issues? Ask for help on our discord
Updating is done automatically by the start script
You can use a tool like tmux or systemd to keep your server running even after you close your terminal session
Starting the server will start a CLI, where you can chat or enter commands Press tab to switch between chat mode (for chat and commands) and REPL mode (for debugging)