Skip to content
KnightOfNight edited this page Jun 20, 2014 · 8 revisions

Setting Up a Server

Download a Minecraft server Java Jar file. You can use the official version released by Mojang or you can use the version released by CraftBukkit that supports plugins.

Copy the Jar file to your Minecraft server. This example will assume you copied it to /tmp/minecraft.jar

Run the following command to setup a server named MyServer

mcctl setup MyServer --jar /tmp/minecraft.jar

You will see output similar to the following...

2014/06/20 09:55:24: INFO: setting up new server 'MyServer'
2014/06/20 09:55:24: INFO: starting server 'MyServer'
2014/06/20 09:55:46: INFO: server 'MyServer' started

You can use the --debug flag if you want to see additional output about what the script is doing e.g.

mcctl --debug setup MyServer --jar /tmp/minecraft.jar

You will see output similar to the following...

2014/06/20 09:56:39: DEBUG: setup a server
2014/06/20 09:56:39: INFO: setting up new server 'MyServer'
2014/06/20 09:56:39: DEBUG: creating directory '/usr/local/games/minecraft/MyServer' for this server
2014/06/20 09:56:39: DEBUG: copying jar file '/tmp/minecraft.jar' to '/usr/local/games/minecraft/MyServer/minecraft_server.jar'
2014/06/20 09:56:39: INFO: starting server 'MyServer'
2014/06/20 09:57:00: INFO: server 'MyServer' started

The server will be started using the default port number 25565. If you want to change this value, stop the server and modify the file server.properties located in the server directory.

Clone this wiki locally