Minecraft Server Stuff

Minecraft Server Stuff

Pre-Req's

Install Steps - Minecraft Vanilla Server

  1. Install latest updates for Windows Server 2019
  2. Download Java - Latest Version for x64 Windows
  3. Download Minecraft Server - Link
    1. Server Setup Wiki

Install Steps - Minecraft Developer Build

  1. Download the version you need from Forge
  2. Install the server version to where ever
  3. Open file explorer and browse to the directory where you installed the forge files
  4. Create a batch file called: settings.bat
    1. Note, Update the JAR values for the correct Forge version you installed. And update the Min and Max RAM values.
REM Don't edit these values unless you know what you are doing.
set INSTALL_JAR=forge-1.12.2-14.23.5.2807-universal.jar
set SERVER_JAR=forge-1.12.2-14.23.5.2807-universal.jar
REM You can edit these values if you wish.
set MIN_RAM=4096M
set MAX_RAM=6144M
set JAVA_PARAMETERS=-XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Dfml.readTimeout=180
  1. Create a batch file called: ServerStart.bat
call settings.bat
:start_server
echo Starting Minecraft Server...
java -server -Xms%MIN_RAM% -Xmx%MAX_RAM% %JAVA_PARAMETERS% -jar %SERVER_JAR% nogui
exit /B
goto start_server
  1. Open a command prompt and run the serverstart.bat file
  2. Fix your eula
  3. Run Serverstart.bat
  4. Type STOP once successful

Verify Minecraft Vanilla Install

  1. From a command line:
    1. java -Xmx4096M -Xms2048M -jar minecraft_server.1.14.jar nogui
  2. The above can be customized for memory, see the wiki link in this article for instructions.
  3. Current server is a VM w/ 7 GB RAM, the above command sets a 2GB initial and 4GB Max Memory Pool (requires x64 Java)
  4. First run should fail, follow the EULA steps to resolve and try again
  5. Once tested, create a BAT file for future use
cd "c:\program files\minecraft"
REM Type /stop to save and quit the minecraft server
java -Xmx4096M -Xms2048M -jar minecraft_server.1.14.jar nogui
Pause
  1. Modify Server.Properties as desired
  2. Verify Port Forwarding
  3. Verify Windows Firewall ports are open
  4. Start Vanilla Server
  5. Connect with a client and verify you can log in (ensure you test WAN)

Modded

Install ManuFactio

  1. Install Forge on the Server
  2. Create settings.bat and ServerStart.bat (see modded steps above)
  3. Run ServerStart.bat and do the EULA update
  4. Enter STOP to save and quit the server.
  5. ForgeServer Setup Complete, Continue to install the Mod
  6. Download ManuFactio from CurseForge
  7. Copy the contents of the 'override' folder and replace the contents in the ForgeServer Folder (same place as the ServerStart.bat)
  8. Run ServerStart.bat
  9. Play game

Install SevTech

  1. Note: I discovered afterwards that installing minecraft in advance was optional... Recommend doing it to ensure that Vanilla works before trying the Modded Version. I discovered that I was using 32bit java instead of 64bit java.
  2. Extract the ZIP to the ./minecraft folder
  3. As an Administrator CMD: install.bat
  4. Modify settings.bat
    1. Configure your minimum and maximum memory settings
  5. Modify server.properties
    • Update query-port
    • Update server-port
    • Update server-ip
  6. As an Administrator: ServerStart.bat
    1. This takes a while on first startup, go get some coffee
  7. Don't forget the EULA
  8. Connect with a client and verify you can log in
  9. Adjust server.properties as desired and retest client connectivity

Install SkyFactory

  1. Same as SevTech, no difference

Security Stuff

A good starting reference

/op 
/whitelist on
/whitelist add <name> 

references