Package Details: minecraft-server 1.16.5-1

Git Clone URL: https://aur.archlinux.org/minecraft-server.git (read-only, click to copy)
Package Base: minecraft-server
Description: Minecraft server unit files, script, and jar
Upstream URL: https://minecraft.net/
Keywords: bash minecraft official script server
Licenses: custom
Conflicts: minecraft-canary, minecraft-server-systemd
Submitter: sorcix
Maintainer: edh
Last Packager: edh
Votes: 142
Popularity: 1.10
First Submitted: 2010-11-29 15:52
Last Updated: 2021-01-15 17:18

Dependencies (8)

Required by (0)

Sources (8)

Pinned Comments

Xarius commented on 2021-02-11 17:49

screen has a server crashing vulnerability. I suggest keeping an eye on: https://security.archlinux.org/AVG-1553

Some have suggested using tmux as a replacement.

edh commented on 2016-06-18 18:24

To get an overview of the available options provided by the management script, be sure to have a look at the help page or read the according section on the ArchWiki article [1].

You can quit the console without shutting down the server by press ctrl+a d (first ctrl+a and after releasing the buttons press d). This will detach your input from the server console. The attaching and detaching is done with GNU screen since it lets you view and type into the console, send single commands to it and keep it alive without a connected user. Take a look at the the command overview at the ArchWiki [2] to get a feel for its power. (@carmelo12341)

[1] https://wiki.archlinux.org/index.php/Minecraft#Setup
[2] https://wiki.archlinux.org/index.php/GNU_Screen#Common_Commands

Latest Comments

1 2 3 4 5 6 ... Next › Last »

edh commented on 2021-02-19 13:49

@thisischrys TBH I don't know anymore :| For some reason I wanted to be really sure that Java does not spawn more threads even for GC. I'll remove the option from the default options string with the next release.

thisischrys commented on 2021-02-19 09:32

Why is java -XX:ParallelGCThreads in the config? (and defaulted to 1?)

Java should figure this out by itself as you can see by running:

"java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal | grep ParallelGCThreads" which is 10 for my 12 core system using java-8-openjdk

Unless there is a good reason to override this I don't see why this flag is included as it reduces GC performance for no reason by default.

Also the description "# -XX:ParallelGCThreads defines the number of threads the server may use" is misleading, maybe add "for garbage collection" to the end if you DO keep the flag.

It does not affect the world thread or anything else, just JVM garbage collection.

Xarius commented on 2021-02-11 18:14

@edh

The tmux thing was mentioned mostly for people with big servers that will be more targeted that may need a quick temporary solution while waiting for the screen fix. I didn't mean to suggest rewriting the script for tmux (although I would personally be okay with that. :) )

edh commented on 2021-02-11 18:00

@Xarius

Thanks for the heads up! This vulnerability looks pretty bad. As soon as a new release is made, users should restart their minecraft server sessions.

The idea of switching to tmux has been floating in my head for quite some time now. Though, to be completely honest I don't see much gain in using it for a minecraft server over GNU screen. Sure, tmux is not affected by this bug but it is not immune to such kind of mishaps. Rewriting every call to screen with a one to tmux will not make the script run more efficient nor will it enable new features that couldn't be implemented with screen.

Xarius commented on 2021-02-11 17:49

screen has a server crashing vulnerability. I suggest keeping an eye on: https://security.archlinux.org/AVG-1553

Some have suggested using tmux as a replacement.

GraphZal commented on 2020-10-03 13:17

@edh Thanks for the quick answer! I'm glad that I wasn't just incompetent and could help find that bug. Great work maintaining this package, by the way!

edh commented on 2020-10-03 09:51

@BrokenPhysics Oh, that's bad and unfortunately is due to the new way users are created. I have fixed it in the new release of the package but for servers already featuring a minecraft user, manual intervention is needed: If you happen to encounter the error message This account is currently not available., you will need to update the login shell such that you can interact with the console again by running usermod -s /bin/bash minecraft as root.

GraphZal commented on 2020-10-03 01:29

When I try to connect to the console using minecraftd console, I get a message saying This account is currently not available. Am I missing something obvious or am I doing something wrong?

edh commented on 2020-06-24 07:21

@Wunkolo Luckily there already is an option to pin the minecraft version via the config. The corresponding entry is called MAIN_EXECUTABLE and defaults to minecraft_server.jar. I am not sure whether it makes sense to add a command line option for that. As a last resort one can always use the same option as an environment variable to achieve the same effect but without touching the config.

P.s. I will hopefully be able to update the package to 1.16 today.

Wunkolo commented on 2020-06-23 21:13

@syntheorem thanks!

I made the "minecraft_server.jar" symlink point to a manually downloaded .jar file temporarily while I wait for this package to update to 1.16.

I wish there was a way to point to and supply our own target .jar version with the minecraftd command(something like designating the minecraftd server version to 1.15.2 or 1.16 and such). There might be people that want to stick to 1.15.2 for a while longer but this package forces users to have the latest.