

It can be installed with the spigot AUR package. Spigot is the most widely-used modded Minecraft server in the world. Alternatives Spigot (respectively Craftbukkit) You need to disable it to initially start. Note: If running for the first time with this option enabled, the /srv/minecraft/eula.txt file will not get created. Moreover, it may be used to display status information with status, backup the server world directory with backup, restore world data from backups with restore or run single commands in the server console with command do-something. It is capable of doing basic commands like start, stop, restart or attaching to the session with console. To easily control the server, you may use the provided minecraftd script. If you are using an alternative server, please see its documentation for details about its configuration. The above information is for the official Minecraft server. On the other hand, enabling remote console access is a security risk, and you should be careful of allowing it. It is advisable to allow query and its query.port. You will need to allow incoming connections at least on the server-port. To enable rcon, you also have to specify enable-rcon=true and rcon.password=. Rcon.port determines the TCP port if you choose to allow remote access to admin console. To enable query, you also have to specify enable-query=true. Note that since the server and query ports are TCP and UDP, they can share the same port. Query.port determines the UDP port at which the server will share game info/advertising information.

Server-port determines the TCP port at which the server will listen for incoming connections. There are three settings in the server.properties which determine ports that your server will use. srv/minecraft/eula.txt #By changing the setting below to TRUE you are indicating your agreement to our EULA ( ). You will need to edit this file to state that you have agreed to the contract in order to run the server. The EULA file resides under /srv/minecraft/eula.txt after being created by the package. This only needs to happen once after installation.
#Minecraft server 1.11.2 license#
In order to run the Minecraft server, you must accept the End User License Agreement. Using systemd, you may start/enable the included rvice. Either way, the server is encapsulated in a tmux session which is owned by the minecraft user. To start the server, you may either use systemd or run it directly from the command line. They may easily be adapted to your liking, e.g. The related systemd files are minecraftd-backup.timer and rvice.

Though to keep the disk footprint small only the 10 most recent backups are preserved (configurable via KEEP_BACKUPS).

By default, the backups are located in the backup folder under the server root directory. The package provides a systemd service and timer to take automatic backups. The server will error out if it is unable to access certain files and might even have insufficient rights to write an according error message to the log. Make sure that all files in the /srv/minecraft directory are either owned by the minecraft user, or that the user has by other means read and write permissions. However, you may safely add your user to the minecraft group and add group write permission to the directory /srv/minecraft (default) to modify Minecraft server settings. By running Minecraft under an unprivileged user account, anyone who successfully exploits your Minecraft server will only get access to that user account, and not yours. Establishing a Minecraft-specific user is recommended for security reasons. In the installation process, the minecraft user and group is introduced. It provides additional systemd unit files and includes a small control script.Īlso see #Alternatives for an overview of alternative programs allowing to host Minecraft. The Java Edition Minecraft server can be installed via the minecraft-server AUR package. Note: Minecraft servers are ran by third parties, ensure to read their privacy policies to learn about how they process your data, some servers require third party accounts to login, and some servers support micro transactions allowing you to pay for items on the server, although this could breaks the Minecraft EULA depending on what the server is selling.
