Minecraft Server: Difference between revisions

No edit summary
Voklen (talk | contribs)
m Add syntax highlighting to code examples
 
(2 intermediate revisions by one other user not shown)
Line 42: Line 42:
You might want to view the [https://minecraft.wiki/w/Server.properties#Keys list of all available server properties for the vanilla server].
You might want to view the [https://minecraft.wiki/w/Server.properties#Keys list of all available server properties for the vanilla server].


See [[#See also]] for recommended JVM flags for the <code>jvmOpts</code> option. These primarily depends on your Java version.
See [[#See also]] for recommended JVM flags for the <code>jvmOpts</code> option. These primarily depend on your [[Java]] version.
== Tips and tricks ==
== Tips and tricks ==


Line 81: Line 81:
For example:
For example:


<code>services.minecraft-server.package = pkgs.minecraftServers.vanilla-1-12;</code>
<syntaxhighlight lang="nix">
services.minecraft-server.package = pkgs.minecraftServers.vanilla-1-12;
</syntaxhighlight>


or
or


<code>services.minecraft-server.package = pkgs.papermc;</code>
<syntaxhighlight lang="nix">
services.minecraft-server.package = pkgs.papermc;
</syntaxhighlight>


=== Prefer IPv4 ===
=== Prefer IPv4 ===