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

melvinvermeeren commented on 2016-02-11 16:49 (UTC)

Hi guys, Some friends of mine host a modded minecraft server on my server. Since modded minecraft servers like to eat a lot of CPU even if they're empty I created a script. Upon first ping/connect the server will boot, if it's empty (by default minimal 5 minutes) it will stop itself and go back to awaiting connections. Perhaps this type of socket-based activation is useful for others with CPU-eating modpacks too, so I'll share it here. Maybe it could be merged here somehow too. :) https://git.mel.vin/melvin/scripts/blob/master/server/riskywhisky_minecraft.sh Regards, Melvin.

edh commented on 2016-01-27 17:38 (UTC)

@sowieso I am well aware of how to properly update a package ;D Though in this case it was NOT my intention for users having to rebuild the package. The introduced changes are purely cosmetic and don't change a thing on how this program works. The checksums should be fine, I updated them accordingly. I guess one may consider this bad practise not increasing the pkgrel but adding some brackets where they are not needed for a nicer look, rewriting the installation note and not using sudo if the user is minecraft (which is discouraged!!!) are not worth the time a user has to spend to redownload and rebuild the package. This is an AUR pacakge not one from the official repo, the final package may differ from machine to machine anyway. Btw. anyone may precisely follow what I have changed simply by going through the git history [1]. Considering the space-issue I still think that anyone who was able to install Arch Linux is aware of the bash syntax. Therefore using common knowledge should not only be more straightforward but also more user-friendly since it should be quite familiar. [1] https://aur.archlinux.org/cgit/aur.git/log/?h=minecraft-server

sowieso commented on 2016-01-27 11:31 (UTC)

Thanks for merging. The changes are online on github, but you should also increase the pkgrel and checksums to actually distribute the update. As for the $WORLDPATH, I would probably use a newline-delimited string or config file. Then I'd xarg this to tar. When I have the time I'll implement it and you can decide if you like it or not. Would at least be more user friendly than to manually escape all the spaces (things users could easily forget, esp when they are not familiar with bash syntax)

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.