Minecraft Server: Difference between revisions
mNo edit summary |
m Add syntax highlighting to code examples |
||
| (3 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. | 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: | ||
< | <syntaxhighlight lang="nix"> | ||
services.minecraft-server.package = pkgs.minecraftServers.vanilla-1-12; | |||
</syntaxhighlight> | |||
or | or | ||
< | <syntaxhighlight lang="nix"> | ||
services.minecraft-server.package = pkgs.papermc; | |||
</syntaxhighlight> | |||
=== Prefer IPv4 === | === Prefer IPv4 === | ||