Server Setup: Difference between revisions

From GT New Horizons
Content added Content deleted
m (Added whitelisting and FAQ.)
m (updated links for 2.1.0.0)
Line 15: Line 15:
While our pack is hosted on many launchers we also maintain a repository of all of our releases. For the purpose of this guide we will be utilizing our hosted repositories as well as the MultiMC launcher.
While our pack is hosted on many launchers we also maintain a repository of all of our releases. For the purpose of this guide we will be utilizing our hosted repositories as well as the MultiMC launcher.


# Download the server pack from here: http://downloads.gtnewhorizons.com/ServerPacks/GTNewHorizonsServer-1.7.10-2.0.9.0.zip
# Download the server pack from here: http://downloads.gtnewhorizons.com/ServerPacks/GTNewHorizonsServer-1.7.10-2.1.0.0.zip
# Download MultiMC from here: https://files.multimc.org/downloads/mmc-stable-win32.zip
# Download MultiMC from here: https://files.multimc.org/downloads/mmc-stable-win32.zip
# Download the client pack from here: http://downloads.gtnewhorizons.com/Multi_mc_downloads/GTNewHorizonsClient-1.7.10-2.0.9.0QF4-MMC.zip
# Download the client pack from here: http://downloads.gtnewhorizons.com/Multi_mc_downloads/GTNewHorizonsClient-1.7.10-2.1.0.0-MMC.zip


''Note: Please reference this guide on how to setup and install our pack in MultiMC (this guide will only cover the server portion.): [[Installing and Migrating]]''[[File:Download Directory.png|alt=Download Directory Image|none|thumb|Your downloads folder should look like this.]]<br />
''Note: Please reference this guide on how to setup and install our pack in MultiMC (this guide will only cover the server portion.): [[Installing and Migrating]]''[[File:Download Directory.png|alt=Download Directory Image|none|thumb|Your downloads folder should look like this.]]<br />

Revision as of 18:05, 26 December 2020


Server Setup for Windows

NOTE: THIS WAS LAST REVISED ON NOVEMBER 7th, 2020 USING VERSION 2.0.9.0. THE DOWNLOAD LINKS PROVIDED WITHIN ARE COMPATIBLE WITH EACH OTHER.

In this guide we will walk through:

  • Downloading the Files
  • Server Setup
  • Starting and Stopping the Server
  • Server Backups
  • FAQ (Frequently Asked Questions)

Downloading the Files

While our pack is hosted on many launchers we also maintain a repository of all of our releases. For the purpose of this guide we will be utilizing our hosted repositories as well as the MultiMC launcher.

  1. Download the server pack from here: http://downloads.gtnewhorizons.com/ServerPacks/GTNewHorizonsServer-1.7.10-2.1.0.0.zip
  2. Download MultiMC from here: https://files.multimc.org/downloads/mmc-stable-win32.zip
  3. Download the client pack from here: http://downloads.gtnewhorizons.com/Multi_mc_downloads/GTNewHorizonsClient-1.7.10-2.1.0.0-MMC.zip

Note: Please reference this guide on how to setup and install our pack in MultiMC (this guide will only cover the server portion.): Installing and Migrating

Download Directory Image
Your downloads folder should look like this.


Server Setup

Step 1: Extract the Server Files

Extract Server Files Image
Right click on the server files ZIP archive and choose "Extract All..."
Extraction Destination Image
Once you've chosen your name for the folder you can hit extract. Whether or not you uncheck the "Show extracted files when complete" checkbox is up to you.

Step 2: Preparing to Start the Server

New File Image
Open up the folder you extracted the files into (in our case it is GTNH-2.0.9.0-Server). Right click in the empty space and choose:New > Text Document.
Change Filename Image
Change the name of this TXT file to: eula.txt.
File Content
Add the following text to the eula.txt file. Then save and close the file.

ATTENTION: BY SETTING THE TEXT OF THE EULA.TXT FILE TO TRUE YOU ARE AGREEING TO THE FOLLOWING EULA AND READING IT IS YOUR RESPONSIBILITY: https://account.mojang.com/documents/minecraft_eula

Step 3: Starting and Stopping the Server

Starting the server at this point is very straight forward. Simply double click:

startserver.bat
Firewall Prompt
If you get the following prompt while the server is starting you can hit Allow Access. It is recommended making sure you're only allowing access on Private Networks (this doesn't impact if you want to open your modem/router for friends to join but is just best practice).


Note: It will take quite some time for the server to startup.


Console Window Image
When your server is ready you will typically see what is boxed in by red at the bottom. At this point your server is running and you can connect to it!

In order to stop the server simply type the following and press enter:

stop

The server will scroll some information by and then the window will close when it shuts down entirely.

Note: It is recommended to use the stop command to stop the server versus just closing the command window. Doing so may corrupt your world data and your world will be unplayable.


Step 4: Whitelisting Players

In order to connect to the server yourself or allow other players to connect you must add them to the whitelist. To do this use the following command inside the server console window:

Syntax: whitelist add <playername>

Example: whitelist add shawnbyday

Server Backups

Go ahead and follow the above procedure to stop the server.

In this step we are going to download and install AromaBackup (a simple backup mod). Running a server means you're responsible for everything on it. The best way to have your own back is to run a backup. We see many people coming into Discord asking for help and they don't have a backup. Backups are deliberate not magic. Don't just set it up but also take the time to ensure it is working. Better yet also take the time to validate the backup itself can be restored. That's what makes a good administrator.

Note: You need AromaBackup and AromaCore.

  1. Download AromaBackup here: https://www.curseforge.com/minecraft/mc-mods/aromabackup/download/2284754/file
  2. Download AromaCore here: https://www.curseforge.com/minecraft/mc-mods/aroma1997core/download/2257644/file
Cut Image
Holding CTRL on your keyboard single left click on both: AromaBackup and AromaCore. Right click on them and select "Cut". (Alternatively you can hold down CTRL and press X on your keyboard).
Paste Image
Next we need to go into our server folder. If you've been following along to this guide this will be located here: C:\Users\<username>\Downloads\GTNH-2.0.9.0-Server\mods Right click on any empty space in this folder and choose "Paste". (Alternatively you can hold down CTRL and press V on your keyboard).


At this point you can go ahead and start your server again. By default AromaBackup will backup your server every 30 minutes. You can change this in the AromaBackup configuration file which will be located in: C:\Users\<username>\Downloads\GTNH-2.0.9.0-Server\config folder. Modifying configuration files is outside of the scope of this guide, however, it is recommended to set the backup interval to be equal to or less the amount of work you are willing to lose.

FAQ (Frequently Asked Questions)

  1. How do I connect to my server?
    1. On the Multiplayer Game you need to add a server and the server address can be (note by default the server is set to use the default Minecraft port which is 25565):
      1. localhost
      2. 127.0.0.1
  2. How do I let my friends connect?
    1. You will need to find out what your external IP address is (you can find this using Google).
    2. You then need to setup port forwarding on your modem/router (this is outside the scope of this guide and requires special attention to detail for privacy and security reasons - again Google is your friend here).