<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.archlinux.jp/index.php?action=history&amp;feed=atom&amp;title=Minecraft%2FJava_%E7%89%88%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC</id>
	<title>Minecraft/Java 版サーバー - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.archlinux.jp/index.php?action=history&amp;feed=atom&amp;title=Minecraft%2FJava_%E7%89%88%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC"/>
	<link rel="alternate" type="text/html" href="https://wiki.archlinux.jp/index.php?title=Minecraft/Java_%E7%89%88%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC&amp;action=history"/>
	<updated>2026-06-22T05:33:03Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki.archlinux.jp/index.php?title=Minecraft/Java_%E7%89%88%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC&amp;diff=36937&amp;oldid=prev</id>
		<title>Kusanaginoturugi: 英語版より記事を追加</title>
		<link rel="alternate" type="text/html" href="https://wiki.archlinux.jp/index.php?title=Minecraft/Java_%E7%89%88%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC&amp;diff=36937&amp;oldid=prev"/>
		<updated>2024-04-11T11:11:53Z</updated>

		<summary type="html">&lt;p&gt;英語版より記事を追加&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:ゲーム]]&lt;br /&gt;
[[Category:サーバー]]&lt;br /&gt;
Minecraft is a [[w:Multiplayer video game|multiplayer game]]. It uses the [[w:Client-server model|client-server model]] in which the game itself is a client which can be played standalone, or can be played with other players when the client connects to a public server.&lt;br /&gt;
&lt;br /&gt;
{{Note|Minecraft servers are ran by third parties. You should read their privacy policies to learn about how they process your data. Some servers require third party accounts to login, and some servers support microtransactions allowing you to pay for items on the server, although this could break the [https://www.minecraft.net/en-us/eula Minecraft EULA] depending on what the server is selling.}}&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The Java Edition Minecraft server can be installed via the {{aur|minecraft-server}} package. It provides additional [[systemd]] unit files and includes a small control script.&lt;br /&gt;
&lt;br /&gt;
Also see [[#Alternatives]] for an overview of alternative programs to host Minecraft.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
In the installation process, the {{ic|minecraft}} user and group are created. Establishing a Minecraft-specific user is recommended for security reasons. 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.&lt;br /&gt;
However, you may safely add your user to the {{ic|minecraft}} group and add group write permission to the directory {{ic|/srv/minecraft}} (default) to modify Minecraft server settings. Make sure that all files in the {{ic|/srv/minecraft}} directory are either owned by the {{ic|minecraft}} user, or that the user has by other means read and write permissions. 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.&lt;br /&gt;
&lt;br /&gt;
The package provides a systemd service and timer to take automatic backups. By default, the backups are located in the {{ic|backup}} folder under the server root directory. Though to keep the disk footprint small only the 10 most recent backups are preserved (configurable via {{ic|KEEP_BACKUPS}}). The related systemd files are {{ic|minecraftd-backup.timer}} and {{ic|minecraftd-backup.service}}. They may easily be [[edit|adapted]] to your liking, e.g. to follow a custom backup interval.&lt;br /&gt;
&lt;br /&gt;
=== Starting the server ===&lt;br /&gt;
&lt;br /&gt;
To start the server, you may either use systemd or run it directly from the command line. Either way, the server is encapsulated in a [[tmux]] session which is owned by the {{ic|minecraft}} user. Using systemd, you may [[start/enable]] the included {{ic|minecraftd.service}}. Alternatively, run&lt;br /&gt;
&lt;br /&gt;
 # minecraftd start&lt;br /&gt;
&lt;br /&gt;
=== Accepting the EULA ===&lt;br /&gt;
&lt;br /&gt;
In order to run the Minecraft server, you must accept the &amp;#039;&amp;#039;E&amp;#039;&amp;#039;nd &amp;#039;&amp;#039;U&amp;#039;&amp;#039;ser &amp;#039;&amp;#039;L&amp;#039;&amp;#039;icense &amp;#039;&amp;#039;A&amp;#039;&amp;#039;greement. This only needs to happen once after installation. The [[Wikipedia:EULA|EULA]] file resides under {{ic|/srv/minecraft/eula.txt}} after being created by the package. You will need to edit this file to state that you have agreed to the contract in order to run the server. All you need to do is change:&lt;br /&gt;
&lt;br /&gt;
 eula=false&lt;br /&gt;
&lt;br /&gt;
to the value {{ic|true}}. Here is an example of an accepted EULA: &lt;br /&gt;
&lt;br /&gt;
{{hc|/srv/minecraft/eula.txt|2=&lt;br /&gt;
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).&lt;br /&gt;
#Sat Sep 11 11:11:11 PDT 2011&lt;br /&gt;
eula=true&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Firewall configuration ===&lt;br /&gt;
&lt;br /&gt;
There are three settings in the {{ic|server.properties}} which determine ports that your server will use.&lt;br /&gt;
&lt;br /&gt;
{{ic|server-port}} determines the {{ic|TCP}} port at which the server will listen for incoming connections. The default port is {{ic|25565}}.&lt;br /&gt;
&lt;br /&gt;
{{ic|query.port}} determines the {{ic|UDP}} port at which the server will share game info/advertising information. The default port is {{ic|25565}}. Note that since the server and query ports are TCP and UDP, they can share the same port. To enable query, you also have to specify {{ic|1=enable-query=true}}.&lt;br /&gt;
&lt;br /&gt;
{{ic|rcon.port}} determines the {{ic|TCP}} port if you choose to allow remote access to admin console. The default port is {{ic|25575}}. To enable rcon, you also have to specify {{ic|1=enable-rcon=true}} and {{ic|1=rcon.password=...}}.&lt;br /&gt;
&lt;br /&gt;
You will need to allow incoming connections at least on the {{ic|server-port}}. It is advisable to allow query and its {{ic|query.port}}. On the other hand, enabling remote console access is a security risk, and you should be careful of allowing it.&lt;br /&gt;
&lt;br /&gt;
The above information is for the official Minecraft server. If you are using an alternative server, please see its documentation for details about its configuration.&lt;br /&gt;
&lt;br /&gt;
See [https://minecraft.wiki/Tutorials/Setting_up_a_server] and [https://minecraft.wiki/Server.properties] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Server management script ===&lt;br /&gt;
&lt;br /&gt;
To easily control the server, you may use the provided {{ic|minecraftd}} script. It is capable of doing basic commands like {{ic|start}}, {{ic|stop}}, {{ic|restart}} or attaching to the session with {{ic|console}}. Moreover, it may be used to display status information with {{ic|status}}, backup the server world directory with {{ic|backup}}, restore world data from backups with {{ic|restore}} or run single commands in the server console with {{ic|command &amp;#039;&amp;#039;do-something&amp;#039;&amp;#039;}}.&lt;br /&gt;
&lt;br /&gt;
{{Note|Regarding the server console (reachable via {{ic|minecraftd console}}), remember that you can exit any [[tmux]] session with {{ic|ctrl+b}} {{ic|d}}.}}&lt;br /&gt;
&lt;br /&gt;
=== Tweaking ===&lt;br /&gt;
&lt;br /&gt;
To tweak the default settings (e.g. the maximum RAM, number of threads etc.), edit the file {{ic|/etc/conf.d/minecraft}}.&lt;br /&gt;
&lt;br /&gt;
For example, more advanced users may wish to enable {{ic|IDLE_SERVER}} by setting it to {{ic|true}}. This will enable the management script to suspend the server if no player was online for at least {{ic|IDLE_IF_TIME}} (defaults to 20 minutes). When the server is suspended, an {{ic|idle_server}} will listen on the Minecraft port using {{man|1|ncat}} from {{Pkg|nmap}} (or any other implementation of [[netcat]]) and will immediately start the server at the first incoming connection. Though this obviously delays joining for the first time after suspension, it significantly decreases the CPU and memory usage leading to more reasonable resource and power consumption levels.&lt;br /&gt;
{{Note|If running for the first time with this option enabled, the {{ic|/srv/minecraft/eula.txt}} file will not get created. You need to disable it to initially start.}}&lt;br /&gt;
&lt;br /&gt;
== Alternatives ==&lt;br /&gt;
&lt;br /&gt;
=== Spigot (respectively Craftbukkit) ===&lt;br /&gt;
&lt;br /&gt;
[https://www.spigotmc.org/ Spigot] is the most widely-used &amp;#039;&amp;#039;&amp;#039;modded&amp;#039;&amp;#039;&amp;#039; Minecraft server in the world. It can be installed with the {{AUR|spigot}} package. The spigot PKGBUILD builds on top of the files from the {{AUR|minecraft-server}} package. This means that the spigot server provides its own systemd unit files, spigot script and  corresponding script configuration file. The binary is called {{ic|spigot}} and is capable of fulfilling the same commands as {{ic|minecraftd}}. The configuration file resides under {{ic|/etc/conf.d/spigot}}.&lt;br /&gt;
&lt;br /&gt;
Be sure to read [[#Configuration]] and replace {{ic|minecraftd}} with {{ic|spigot}} wherever you encounter it.&lt;br /&gt;
&lt;br /&gt;
It is somewhat affiliated with [https://bukkit.org/ Bukkit] and has grown in popularity since Bukkit&amp;#039;s demise.&lt;br /&gt;
&lt;br /&gt;
=== Cuberite ===&lt;br /&gt;
&lt;br /&gt;
[https://cuberite.org/ Cuberite] is a highly efficient and extensively moddable Minecraft server, written in C++ and Lua. It achieves much better performances than the vanilla Minecraft server, but it is not fully compatible with the latest Minecraft client (some game aspects might be missing or not working).&lt;br /&gt;
&lt;br /&gt;
The Cuberite Minecraft server can be installed as a {{AUR|cuberite}} package, which provides a simple web interface by default at port {{ic|8080}} with which most server operations can easily be done through the browser. The cuberite PKGBUILD builds on top of the files from the {{AUR|minecraft-server}} package. This means that the cuberite server provides its own systemd unit files, cuberite script and corresponding script configuration file. The binary is called {{ic|cuberite}} and is capable of fulfilling the same commands as {{ic|minecraftd}}. The configuration file resides under {{ic|/etc/conf.d/cuberite}}.&lt;br /&gt;
&lt;br /&gt;
Be sure to read [[#Configuration]] and replace {{ic|minecraftd}} with {{ic|cuberite}} wherever you encounter it.&lt;br /&gt;
&lt;br /&gt;
=== PaperMC ===&lt;br /&gt;
&lt;br /&gt;
[https://papermc.io PaperMC] is a Minecraft server, compatible with Spigot plugins which aims to offer better performance. It can be installed via {{AUR|papermc}}.&lt;br /&gt;
&lt;br /&gt;
Be sure to read [[#Configuration]] and replace {{ic|minecraftd}} with {{ic|papermc}} wherever you encounter it.&lt;br /&gt;
&lt;br /&gt;
=== Forge ===&lt;br /&gt;
&lt;br /&gt;
[https://minecraftforge.net Forge] is a widely used Minecraft modding API. The following server packages are available:&lt;br /&gt;
&lt;br /&gt;
* {{AUR|forge-server}} for the latest Minecraft version (1.19.x)&lt;br /&gt;
* {{AUR|forge-server-1.15.2}} for Minecraft 1.15.2&lt;br /&gt;
* {{AUR|forge-server-1.14.4}} for Minecraft 1.14.4&lt;br /&gt;
* {{AUR|forge-server-1.12.2}} for Minecraft 1.12.2&lt;br /&gt;
* {{AUR|forge-server-1.11.2}} for Minecraft 1.11.2&lt;br /&gt;
* {{AUR|forge-server-1.10.2}} for Minecraft 1.10.2&lt;br /&gt;
* {{AUR|forge-server-1.9.4}} for Minecraft 1.9.4&lt;br /&gt;
* {{AUR|forge-server-1.8.9}} for Minecraft 1.8.9&lt;br /&gt;
* {{AUR|forge-server-1.7.10}} for Minecraft 1.7.10&lt;br /&gt;
* {{AUR|forge-server-1.6.4}} for Minecraft 1.6.4&lt;br /&gt;
&lt;br /&gt;
Be sure to read [[#Configuration]] and replace {{ic|minecraftd}} with {{ic|forged}} ({{ic|forge-x.x.xd}} for legacy versions) wherever you encounter it.&lt;br /&gt;
&lt;br /&gt;
=== Fabric ===&lt;br /&gt;
&lt;br /&gt;
[https://fabricmc.net/ Fabric] is a lightweight, experimental modding toolchain for Minecraft. The server package can be installed via {{AUR|fabric-server}}.&lt;br /&gt;
&lt;br /&gt;
Be sure to read [[#Configuration]] and replace {{ic|minecraftd}} with {{ic|fabricd}} wherever you encounter it.&lt;br /&gt;
&lt;br /&gt;
=== Quilt ===&lt;br /&gt;
&lt;br /&gt;
[https://quiltmc.org/ Quilt] is an open-source, community-driven modding toolchain designed primarily for Minecraft. The server package can be installed via {{AUR|quilt-server}}.&lt;br /&gt;
&lt;br /&gt;
Be sure to read [[#Configuration]] and replace {{ic|minecraftd}} with {{ic|quiltd}} wherever you encounter it.&lt;br /&gt;
&lt;br /&gt;
It is originally forked from Fabric, meaning it is mostly backwards compatible with Fabric mods.&lt;br /&gt;
&lt;br /&gt;
== Tips and tricks ==&lt;br /&gt;
&lt;br /&gt;
=== Minecraft server port ===&lt;br /&gt;
&lt;br /&gt;
{{Expansion|Document SRV record support to allow the use of a non-default port without needing to specify the port when using domain names}}&lt;br /&gt;
&lt;br /&gt;
By default Minecraft servers run on port {{ic|25565}}, this port is assumed if an address is entered without a port specified.&lt;br /&gt;
&lt;br /&gt;
Most Minecraft server providers will charge a premium for a server with the default minecraft port, therefore if your port differs from {{ic|25565}} you must specify the port by appending a colon (&amp;#039;&amp;#039;&amp;#039;:&amp;#039;&amp;#039;&amp;#039;) to the end of the hostname or address followed by the port which was allocated to your server, for example if you address was {{ic|43.12.122.96}} and port was {{ic|28543}} you would connect to {{ic|43.12.122.96:28543}}.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* There are several server wrappers available providing everything from automatic backup to managing dozens of servers in parallel; refer to [https://minecraftservers.gamepedia.com/Server_wrappers Server Wrappers] for more information. However, the management script provided by the [[AUR]] packages should suffice most needs.&lt;br /&gt;
* You might want to set up a [[systemd timer]] with e.g. [https://minecraft.wiki/wiki/Programs_and_editors#Mappers mapper] to generate periodic maps of your world.&lt;br /&gt;
* Be sure to take periodic backups e.g. using the provided management script (see [[#Configuration]]) or plain [[rsync]].&lt;/div&gt;</summary>
		<author><name>Kusanaginoturugi</name></author>
	</entry>
</feed>