Package Details: minecraft-server 26.2-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: 171
Popularity: 0.26
First Submitted: 2010-11-29 15:52 (UTC)
Last Updated: 2026-06-17 02:20 (UTC)

Dependencies (8)

Required by (0)

Sources (2)

Pinned Comments

edh commented on 2016-06-18 18:24 (UTC) (edited on 2021-10-02 08:19 (UTC) by edh)

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; ctrl+b also works). This will detach your input from the server console. The attaching and detaching is done with tmux (previously 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/title/Minecraft#Setup [2] https://wiki.archlinux.org/title/Tmux

Latest Comments

« First ‹ Previous 1 .. 21 22 23 24 25 26 27 28 29 30 31 .. 37 Next › Last »

SirPenguins commented on 2013-01-14 21:26 (UTC)

@UnsolvedCypher -- Sure! I've added /usr/sbin/minecraftd-diag which will do the same thing as minecraft-server used to. I've renamed it to prevent confusing people who don't read comments. :)

UnsolvedCypher commented on 2013-01-14 21:18 (UTC)

Could we possible retain the minecraft-server command from the old package, which launches the server in the current directory with a GUI?

<deleted-account> commented on 2013-01-14 21:17 (UTC)

I'm massively retarded, how do I run this now? minecraftd seems to work but screen -r minecraft doesn't? Eh, I'll download the Jar ¬.¬

SirPenguins commented on 2013-01-12 17:45 (UTC)

~ $ echo $JAVA_HOME /usr/lib/jvm/java-7-openjdk ~ $ which java /usr/bin/java ... Doesn't seem like it. I'd just append "PATH=/opt/java/jre/bin:/usr/bin/java:$PATH" to the java command.

ImNtReal commented on 2013-01-12 02:34 (UTC)

Would it be better to use $JAVA_HOME?

Refutationalist commented on 2013-01-12 02:31 (UTC)

That was it. I'm running an oracle JRE, so my java sits in /opt/java/jre/bin. Added it to the path and away it went. If you add minecraftctl to the package, I'd be happy to update the wiki about it. Thanks!

SirPenguins commented on 2013-01-12 02:07 (UTC)

Where is java in your $PATH? Is that present in the $PATH systemd uses when running the ExecStart directive? A root shell will have a different environment than what systemd has. I like the patch. Thank you for catching the chown order mixup! We should get info about minecraftctl into the wiki page. I will modify the package as soon as I can -- most likely tomorrow.

Refutationalist commented on 2013-01-12 01:59 (UTC)

Also, as it stands systemd won't start /usr/bin/minecraftd, but running it by hand works fine. Don't know why, looking into it.

Refutationalist commented on 2013-01-12 01:55 (UTC)

@SirPenguins: Sort of got started on that in this patch: https://gist.github.com/4515629 It creates a /etc/conf.d/minecraft and a /usr/bin/minecraftctl which I adapted from the generic init script-- I wanted automated backups and the ability to run server commands from a shell. It'll make backups in /src/minecraft/backup. I also changed the install file so the log file is touched before the chown, so the minecraft server has write access to the log file on startup. Even if you don't use my patch, you might want to make that change to the install file.