Package Details: minecraft-server 1.21.3-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: 164
Popularity: 0.119461
First Submitted: 2010-11-29 15:52 (UTC)
Last Updated: 2024-10-23 19:51 (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 .. 17 18 19 20 21 22 23 24 25 26 27 .. 37 Next › Last »

<deleted-account> commented on 2013-09-17 21:06 (UTC)

Edit: small change will fix up the issue, minecraft_server.jar should be named minecraft_server.1.6.2.jar, then the forge setup works fine.

SirPenguins commented on 2013-09-17 20:59 (UTC)

@ntzrmtthihu777 Should be fairly simple, honestly. Take a look at /etc/conf.d/minecraft and modify the SERVERJAR variable to be the name of your forge jar. This is what I do for the tekkit and Canary packages that are based off this base PKGBUILD. Let me know how it goes!

<deleted-account> commented on 2013-09-17 20:36 (UTC)

Any chance on being able to setup minecraftforge with this? I can do it manually, but its nice to have an actual init script + screen setup for it. to use forge with it you need to place the forge jar in /srv/minecraft and execute *it*, not minecraft_server.jar, with java.

<deleted-account> commented on 2013-06-27 10:11 (UTC)

@narical @SirPenguins It works fine to use anything-sync-daemon for keeping your world on a ramdisk. *However*, this breaks the 'minecraftctl backup' command because by default tar doesn't follow symlinks and so you get tarball consisting of your server jar and the symlink asd creates. This is trivial to fix by adding the -h switch to the tar commands in the minecraftctl switch, and shouldn't break anything for non-users of asd, since it's hard to imagine a scenario where you wouldn't want the backup script to follow symlinks inside your world folder.

SirPenguins commented on 2013-06-04 16:17 (UTC)

@kd0bpv -- MCUSER is used by minecraftctl, as minecraftctl also sources that conf file. Regardless, it makes sense to change the invocation. I'll get to it soon.

kd0bpv commented on 2013-06-04 16:05 (UTC)

@SirPenquins -- I noticed you set a variable in conf.minecraft called MCUSER, but then it's never used. Might I suggest changing the launch line in minecraftd to the following? screen -dmS minecraft su ${MCUSER} -c "PATH=/opt/java/bin/:/usr/bin/:$PATH java -Xmx${MAXHEAP} -Xms${MINHEAP} -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=${THREADS} -XX:+AggressiveOpts -jar ${_SRVDIR}/${SERVERJAR} nogui" I suspect that was the original intent of that variable. Otherwise, the variable is just a waste (granted, a small one) of memory. I have made this change and it works perfectly on my system.

SirPenguins commented on 2013-06-03 14:53 (UTC)

@narical -- I will try to add a ram-specific service file after I resolve the /usr/bin merge problems @UnsolvedCypher -- minecraftd-diag will source /etc/conf.d/minecraft, su to user 'minecraft', and then run the jar with the same options the systemd service file would use. It's there to see what errors are occurring on the console since when invoked with screen the minecraft jar will just exit without leaving a log. If you want to run the jar yourself, do this: su minecraft cd ~minecraft java -jar minecraft_server.jar @unikum -- There was a bug in the install script that deleted /usr/bin/minecraftd. It's been resolved and the working version has been uploaded. Grab the newest version and reinstall.

artemklevtsov commented on 2013-06-03 13:24 (UTC)

After last system updated I get: ls -l /usr/bin/minecraftd ls: cannot access /usr/bin/minecraftd: No such file or directory I tried reinstall this package but it don't help.

UnsolvedCypher commented on 2013-05-24 22:45 (UTC)

What is the command to run the jar file? minecraftd-diag used to do this, but now it does something different.