If you want a server that is...
If you are familiar with...
If you have a computer with enough spare resources for your players...
| Players | RAM RAM RAM | Storage |
|---|---|---|
| 1-5 | 3 GB | 10-20GB |
| 5-10 | 6 GB | 20-30GB |
| 10+ | 8 GB | 30+GB |
Then this guide IS for you!
On a Mac, it is recommended to get started by first opening a terminal. You can search for terminal in Spotlight (⌘+Space).Copy/Paste the following code in your terminal to make it easier to use java: function java() {
"/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java" "$@" ;
}If you later get an error saying command not found, you may need to repeat the above. |
Do I need to do this? | |
If you have previously installed Java, that will work for the server. If you are unsure if Java is installed:
If Java is already installed, ensure it is on the system path.
|
sudo apt-get install openjdk-8-jre-headless
C:\Program Files\Java.jdk over jrebin folder.Copy as pathpathEdit the system environment variables or Edit environment variables for your account
Environment Variables... in the window that pops upPath entry to edit itNew and paste the previously-copied Java bin folder location into the new rowOk until the opened windows are closedjava in your terminal. If you get a command not found error, you may have to repeat the code block above.minecraft_server.jarDownloads/ folder..jar when you go to rename it, do not add it (eg: rename to minecraft_server instead of minecraft_server.jar).To open a terminal inside a folder, shift-right click on an empty part in the folder, and choose 'Open Powershell Window Here' or 'Open Command Window Here' |
You can open a new terminal by searching terminal in Spotlight (⌘+Space)If you opened a new terminal, you may need to run the code snippet at the beginning of the 'Install Java' section. To enter your server's folder in the terminal:
|
java -Xms1024M -Xmx<amount>M -jar minecraft_server.jar -noguiChange <amount> to be 1024 times the suggested RAM amount. (ex: 2 GB * 1024 = 2048 -> -Xmx2048M)
If the server immediately crashes with the word 'heap', possible culprits include these options or your Java installation.
eula.txt file, read the EULA, and replace eula=false with eula=trueeula.txt is in the same folder as your minecraft.jarA window may pop up to allow your Minecraft server through the firewall. You should allow it through. |
If you would like to test your server at this stage, you can go open Minecraft on the same computer, and use localhost as the server address.
To stop your server, you can type the command stop at the server console, or press ctrl+c.
server.properties optionsMost options you will want to change for a regular server, will be located inside the server.properties file.
minecraft_server.jar and eula.txtBelow are common options, and their function. An exhaustive list is at the Minecraft Wiki.
gamemode | Determines the default gamemode players are spawned in with. Ex: |
server-port | Determines the network port that the server listens to.
|
motd | The message shown in the player's server list. Can be edited as is. For colors or text effects, use an online editor. |
white-list | Typically for private servers. Enable this to only allow players in |
difficulty | Use this option to change the game difficulty. Note that hardcore mode is a different property. Ex: |
max-players | Used to set the maximum amount of players allowed on the server at once.
|
pvp | Enables/Disables players being able to attack each other. Disabling this reduces conflict in survival mode. |
spawn-protection | Allocates a square radius of blocks around spawn that can only be edited by moderators. If this is zero, then only one block at spawn is protected. Remove all server OPs to disable protections. |
You should be able to connect to your server via an IP address.
For players outside of your home or local network, you can search what's my ip on Google and get your public IP address.
Connection timed out error when using this address, you may need to setup port forwarding. A brief port forwarding guide can be found here.For players inside your home or local network, you can use a similar console to the one you opened for the server and run ipconfig to get your private IP address.
IPv4 Address (there may be multiple!) is the address others should use.192.168., 172.16., or 10.0..