@sowieos
I implemented the discussed suggestions.
Search Criteria
Package Details: minecraft-server 1.21.3-1
Package Actions
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.070275 |
First Submitted: | 2010-11-29 15:52 (UTC) |
Last Updated: | 2024-10-23 19:51 (UTC) |
Dependencies (8)
- awk (gawk-gitAUR, busybox-coreutilsAUR, gawk)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- java-runtime-headless (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdg-headlessAUR, jre16-openjdk-headlessAUR, jre14-openjdk-headlessAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdk-headlessAUR, amazon-corretto-19-binAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jre-openj9-headlessAUR, jre12-openjdk-headlessAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdk-headlessAUR, jre15-openjdk-headlessAUR, jdk8-openj9-binAUR, jre-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jre19-openjdk-headlessAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, zing-21-binAUR, zing-8-binAUR, jre17AUR, java-openjdk-binAUR, jre21-zulu-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jre17-zulu-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jre8AUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jdk17-openj9-binAUR, jre-jetbrainsAUR, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, zulu-23-binAUR, jreAUR, jdkAUR, jdk21-jetbrains-binAUR, java-openjdk-ea-binAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre-openjdk-headless, jre11-openjdk, jre11-openjdk-headless, jre17-openjdk, jre17-openjdk-headless, jre21-openjdk, jre21-openjdk-headless, jre8-openjdk-headless)
- sed (busybox-coreutilsAUR, sed-gitAUR)
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR)
- tmux (tmux-tcl-gitAUR, tmux-xdg-gitAUR, tmux-sixel-gitAUR, tmux-gitAUR)
- netcat (nmap-netcatAUR, openbsd-netcat-gitAUR, gnu-netcat-svnAUR, gnu-netcat, openbsd-netcat) (optional) – required in order to suspend an idle server
- tar (tar-gitAUR, busybox-coreutilsAUR) (optional) – needed in order to create world backups
Required by (0)
Sources (2)
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)
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"?
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