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 .. 12 13 14 15 16 17 18 19 20 21 22 .. 37 Next › Last »

edh commented on 2016-01-26 19:38 (UTC)

@sowieos I implemented the discussed suggestions.

edh commented on 2016-01-25 23:40 (UTC) (edited on 2016-01-26 19:36 (UTC) by edh)

@sowieso It is great to see people contributing to my script. I will have a closer look at your changes as soon as possible. As far as I can tell your point on sudo and double brackets seems reasonable I will most definitely address them. However I quite don't get what is wrong about using a space delimiter for world names. This variable is bash interpreted [1] and as long as tar understands what you mean it should be just fine. Hence using "\ " to express a normal space is sufficient. I mainly chose to do it this way because I though an array might be more confusing. (I though that by the time you install Arch Linux you should be aware of the bash-syntax.) P.S. I host all of my code on github [2]. In case you are familiar with git please feel free to make a merge request. [1] https://github.com/Edenhofer/abs/blob/master/minecraft-server/minecraftd.sh#L110 [2] https://github.com/Edenhofer/abs/tree/master/minecraft-server

sowieso commented on 2016-01-25 17:33 (UTC)

I made the following additions to your minecraftd, if you like them feel free to incorporate them: ‣ if the user is already minecraft, no need for sudo anymore ‣ sudo user does not have to have sudo access for root anymore, only for minecraft (set up in /etc/sudoers) ‣ replaced [ to [[ (saver bash-style) you can download the script here https://paste.kde.org/pxzrrngcg I am also thinking of adding support for changing the current world and noticed your WORLDPATHS variable is space-delimited, which is very bad as worlds in Minecraft often contain spaces.

edh commented on 2016-01-23 11:54 (UTC) (edited on 2016-01-30 23:20 (UTC) by edh)

This package just recieved some major additions: * The script is now capable of restoring backups easily with the delivered bash script (The new config file must be merged in order to properly restore backups and only new backups are eligible!) * The naming schema for backups is now more human readable * Backed up directories are relative * Group has write permission (g+ws) to SERVER_ROOT (Thanks @sowieso for the hint) * Proper quotation of variables which might contain spaces

sowieso commented on 2016-01-22 22:46 (UTC)

Hi, consider using setgid on the /srv/minecraft directory. Then all users in group minecraft can copy their worlds in this folder and setup the server to their liking. chmod g+ws "$pkgdir/srv/minecraft"

edh commented on 2015-09-20 21:40 (UTC)

@Chais Thanks! I adopted the package and will try my best to advance it.

Chais commented on 2015-09-20 11:10 (UTC)

@edh I'm not currently playing and can't make the time to give the package some much needed love. Therefore I'm going to orphan it. Feel free to pick it up.

edh commented on 2015-09-14 15:20 (UTC) (edited on 2015-12-06 11:56 (UTC) by edh)

@Chais I recently wrote my own spigot shell script [1] from scratch to easily manage my minecraft server. The programm is obviously able to start and stop the server but it also can provide status information, create backups, bring you to the server console or simply run single commands in the server console with all (nearly all) output piped back to stdout. In addition I created a systemd timer and service file for automated backups. I don't want to seem intrusive but if there is any chance that it could be included into this PKGBUILD, I would be glad to customize this script to work with the official minecraft server as well. [1] https://github.com/Edenhofer/abs/tree/master/spigot

Chais commented on 2015-06-04 09:37 (UTC)

Sorry for the long wait. Took me a while to get it to work and I have life going on.

killermoehre commented on 2015-05-19 08:32 (UTC)

Shouldn't "minecraftctl status" be forwarded to "systemctl status minecraftd"?