Setting up a Minecraft server is fairly straightforward – most of the time you just download the jar file into a folder and run it. But you might end up wondering how to add some of the clever stuff you see on other servers such as games or preventing griefing – such as people starting fires.
There are plenty of add ons out there but they require something more than basic Minecraft. A common version of Minecraft for these addons is Spigot. Installation is much easier than it used to be but I though some instructions would be helpful.
For ease of use I’d suggest using BuildToolsGui. It avoids having to type out the java commands and finds the lastest version of the server file for you.
You can find it on GitHub here. There’s no need to build the program yourself, click the link to download the most recent build and save it to a folder.
Double-click the the icon and then click the ‘Run BuildTools’ button at the top right.
The empty window will then fill with text from the progress of the script. If all goes well, it should tell you that it was successful with a message a little like this.
Return to the Folder and navigate to the Build Tools folder to find the spigot-v.v.v.jar file, spigot-1.11.2.jar in my case. I’d copy this file into a new folder. I created one in the SpigotTest folder called server.
Now we’re on to the instructions posted on the Spigot website to create a batch file that will start the server. There’s nothing fancy to it; it’s the command to start the server and will look familiar if you’ve ever started a server from the Linux terminal.
Enter the following code:
java -Xms512M -Xmx1536M -jar spigot-1.11.2.jar
The first command hides our commands in the Command Prompt window that appears. The second line starts the server with some options for the maximum and minimum amount of memory that should be given to the server. You might want to increase the XmX value to give it more memory if you have plenty on your computer. You might also need to change the version number to match the filename in the BuildToolsGUI window.
Save the file in the same folder as the spigot-1.11.2.jar file with name startserver.bat.
Open the folder containing the files in Windows Explorer. Double click the startserver.bat file in Windows Explorer to start the server.
Sadly that’s not quite it as you’ll see a screen like this one
Press the space bar to close the window. Right-click eula.txt and click Edit with Notepad++. Delete “false” and type “true” in its place. Save and close the file.
[The eagle-eyed will also have spotted the warning about the out of date build. Run the BuildToolsGUI again if this happens to use the most recent version available]
Double-click starserver.bat again and the server should start properly this time. When the > appears the server is ready.
To connect to the game in Minecraft on the same computer, start Minecraft and click Multiplayer.
Click Add Server. Enter “Local Server” in the server Name box and “localhost” in the Server Address box. Click Done.
If all is working you should now see your local server in the list. Double-click it and start the game!