Package Details: minecraft-server 1.17-1

Git Clone URL: (read-only, click to copy)
Package Base: minecraft-server
Description: Minecraft server unit files, script, and jar
Upstream URL:
Keywords: bash minecraft official script server
Licenses: custom
Conflicts: minecraft-canary, minecraft-server-systemd
Submitter: sorcix
Maintainer: edh
Last Packager: edh
Votes: 147
Popularity: 3.67
First Submitted: 2010-11-29 15:52
Last Updated: 2021-06-17 18:00

Dependencies (8)

Required by (0)

Sources (8)

Pinned Comments

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)


Latest Comments

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

edh commented on 2021-06-22 19:10

@Refutationalist Sorry if my question was phrased poorly. I was specifically asking about objective arguments in favor of GNU screen, i.e. why a new user should prefer GNU screen over tmux for a minecraft server management script.

The severe bug I mentioned was brought up in this comment section by Xarius on 2021-02-11 17:49 in . It is tracked under CVE-2021-26937 .

Tmux has a more active community and using it in scripts feels way more natural. Thus, while in theory they both do roughly the same thing, tmux feels much more flexible to me. Actually I long toyed with the idea of rewriting every GNU screen call to a tmux call myself (see ) but have not had the time to do so just yet.

@Static_Rocket Would you be willing to submit a merge request on github for this ( I would be more than happy to help with any remaining issues.

Static_Rocket commented on 2021-06-22 12:13

@Refutationalist For starters, this bug and it's workaround are documented explicitly in , but I'm not sure if it's still an issue.

Refutationalist commented on 2021-06-22 10:16

@edh: A very strong preference for it over tmux, and it does the job. Could you elucidate on this bug you're talking about?

edh commented on 2021-06-22 07:46

@Static_Rocket Awesome! I would be more than happy to merge your changes into this package if you would be interested in that. I think tmux should be preferred over GNU screen considering its more active development and the recent severe bug in GNU screen.

@Refutationalist Can you elaborate a little as to why you would prefer to use GNU screen for this package?

Static_Rocket commented on 2021-06-22 05:08

It would require about another day of tweaking but perhaps. It took a bit, but I attempted to replace the calls to screen with the closest equivalent tmux has to offer. I was hoping to make these modifications as patch friendly as possible. It would be simple to check what a user has installed and roll with whatever's available but it may be a little weird detecting if someone already has a tmux/screen session running when they have both tmux and screen installed.

But I guess that really doesn't matter. It could just default to screen if both screen and tmux are installed.

Refutationalist commented on 2021-06-22 04:43

If tmux is added, could it be made possible to continue using screen if desired?

Static_Rocket commented on 2021-06-22 04:37

@edh I made a fork of this that uses tmux instead of screen. I was thinking about adding it to the AUR as a separate package but I figured I would ask and see if you wanted to look over it at all before that. Let me know if you're interested.

edh commented on 2021-06-12 09:01

Just as a heads-up, I will wait until java-runtime-headless>=16 hits the stable Arch repositories before publishing the next release of minecraft to the AUR. Please be patient until then.

tzcrawford commented on 2021-06-08 23:16

For those of you wishing to update to 1.17 before this PKGBUILD is updated, I did this temporary fix. First cd into /srv/minecraft or wherever your server files are and wget the newest official .jar file. You can relink minecraft_server.jar to what you just downloaded. The minecraft wiki says that the update requires java 16 but the main repository jdk-openjdk package is still for version 15. So you can use another AUR package to acquire openjdk16 and switch to that environment. Finally I chose to start the server in a gnu screen/tmux instance using java -Xms1024M -Xmx3072M -jar './minecraft_server.jar' nogui or whatever was in /etc/conf.d/minecraft.

edh commented on 2021-04-30 08:07

@Xarius The full backup command reads ${SUDO_CMD} tar -C "${SERVER_ROOT}" -cf "${BACKUP_DEST}/${fname}" ${BACKUP_PATHS} --totals ${BACKUP_FLAGS} 2>&1 | grep -v "tar: Removing leading ". Thus by modifying ${BACKUP_FLAGS} in the config, you have full control over the arguments with which tar is called. You can change the current configuration to -I "..." and specify a program of your choosing with additional command line flags.