0% found this document useful (0 votes)
32 views4 pages

My Biography

Uploaded by

George Saleptsis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views4 pages

My Biography

Uploaded by

George Saleptsis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

The default game mode (the 'gamemode' property) is still used

for new players, but does not change the world's default game mode
( GameType in the level.dat file).
--universe <String>
The folder in which to look for world folders. (default: . , the current directory)
The following options are available from server.properties too. It might be a
better idea to edit that file instead for easier management:
--world <String>
The name of the world folder in which the level.dat resides. (default: world )
This is the same as level-name .
--port <Integer>
Which port to listen on, overrides the server.properties value. (default: -1, read
from server.properties)
See Server.properties, option "server-port", for restrictions on this value.
Example command line
 Running a world found in the folder "cold" on port
1337, with 1G of RAM allowed: java -Xmx1G -
jar minecraft_server.jar --port 1337 --
nogui --world cold .

Windows instructions
Installing Java
The Minecraft server requires the Java Runtime Environment
(also called JRE or simply Java). For your security, you should
only use the most recent version of Java. To verify that you have
the latest version, do one of the following:

 Open Windows Control Panel, find Java (it may be


inside the Programs category), and click on Update
Now.
 Visit http://java.com/en/download/installed.jsp. This
will perform an automatic version check from your
browser. However, the Google
Chrome and Firefox browsers do not run Java
content and therefore cannot check Java through
the browser.
 Open a command window and enter the
command java -version . If a version number is
reported, then check the Java website to see what
the most recent version number is.
If you don't have Java or your version is outdated, then
download the newest version
at https://adoptopenjdk.net/ (OpenJDK)
or http://www.java.com/download/ (Oracle "OTN" JDK)
macOS instructions
Keep in mind that the server won't run correctly on macOS 10.4
and earlier and may crash your machine.

Installing Java
Open the terminal.

 Check if you have java by running java -


version . Make sure it's newer than 1.6 (best if
newer than 1.8), for most versions, or java 17+ on
1.17 and later versions.

 If you don't have java, you can install it via


HomeBrew:
o Run /bin/bash -c "$(curl -
fsSL https://raw.githubusercontent.com/Ho
mebrew/install/master/install.sh)" to install
HomeBrew first.
o Run brew install openjdk to install
java (OpenJDK).
 Run java -version again. You should get
something this time.
Setting up the Minecraft server
See the Common instructions.

Using Time Capsule


Contents in this section are disputed.
This section should definitely not be in this part (it fits better
under #IP address notes), but then it probably also does not
belong under this article. We are not adding instructions for TP-
link, D-link, Linksys and all other brands, so why single out
AirPort specifically?
Some homes use AirPort Time Capsule as a wireless router
instead of other brands. This section will teach you how to set
one up without messing up your file server.
NOTE: Make sure you have your admin username and
password.

 Open System Preferences > Network.


 Click the Advanced button and go under TCP/IP.
 Where it says Configure IPv4, change that option to
Using DHCP with manual address.
 Change the IP address to 10.0.1.x, where x is a
number between the last number of the two
numbers under DHCP range (i.e. 10.0.1.2 to
10.0.1.254 would be anywhere between 2 and 254).
 Now go to the Sharing section and make sure that
Internet Sharing is on.
 Now, open up AirPort Utility and edit your Time
Capsule settings.
 Go under Network and make sure the option Router
Mode is set to DHCP and NAT. Now, click the +
button under the Port Settings.
 Type in the following:
o Description: Minecraft Server (or
whatever you want to call it)
o Private IP Address: The address you
chose for the 4th step.
 Change everything with the word port in it to 25565.
 Now, hit Save and update the Time Capsule.
That's it! You're now ready to configure your server.

Linux instructions
Linux comes in many different varieties called distributions
(distros). Some of these distros are designed or better suited for
running a server. If you are setting up a dedicated server it is
recommended to use one of these distros.
Linux, in general, is more welcoming to open source programs.
So where applicable it is recommended you use open source
programs, such as OpenJDK.

Installing Java
For most distributions, it is recommended to install OpenJDK 16
(for 1.17+) or OpenJDK 8 (for below 1.17) from the official
repositories. For Oracle Java refer to Oracle's Download Page.
Note: While not affecting Minecraft server, JavaFX or other
proprietary aspects of Java will need to be installed separately.
Specific instructions are included for each distro below, but not
all have been updated to 1.17. If it only says to install OpenJDK
8, that means that it has not yet been updated to 1.17.
Solus
Run sudo eopkg install openjdk-8 to install OpenJDK.
For OracleJDK refer to Solus Help Center
Note: OpenJDK 11 is not in Solus' repositories.
Debian, Ubuntu, Raspbian
Note: You might need to install the package "software-
properties-common" by running sudo apt-get install
software-properties-common and/or "python-software-
properties" by running sudo apt-get install python-
software-properties to use the apt-add-
repository command.

Due to licensing issues, the repository frequently used to install


Oracle Java has been discontinued. It is now recommended that
you install OpenJDK 8 or above.
OpenJDK can be installed with one command:
 sudo apt update; sudo apt-get install
openjdk-8-jdk-headless below Minecraft Serve
r 1.17
 sudo apt update; sudo apt install
openjdk-16-jdk-headless at or
above Minecraft Server 1.17
Removing the 'headless' part of the command will install all
components of Java.
Note: <1.17 tested in Ubuntu 18.04, 1.17 tested in Ubuntu
Server 20.04.2 LTS
openSUSE
Note: Due to possible instability openSuse Tumbleweed is not
recommended as a dedicated server.
Just run the command from the terminal: sudo zypper in
java-1_8_0-openjdk

Java should be installed.


Note: Tested in openSuse Leap 15.1
Arch Linux
Both java 8 and 16 are in arch linux's repostiory.
Just run pacman -S jre-openjdk-headless , For the
OpenJDK 16 JRE, Remove "-headless" for the full JRE if you
want to run with GUI.
Just run pacman -S jre8-openjdk-headless , For the
OpenJDK 8 JRE, Remove "-headless" for the full JRE if you
want to run with GUI.
If you encounter issues it is recommended that you refer to
the ArchWiki
Gentoo
Run emerge --ask virtual/jdk
Gentoo Wiki
Other distros
Check your distro's documentation. It should have information
on how to install OpenJDK.

You might also like