Package Details: minecraft-server 1.10.2-3

Git Clone URL: https://aur.archlinux.org/minecraft-server.git (read-only)
Package Base: minecraft-server
Description: Minecraft server unit files, script, and jar
Upstream URL: http://minecraft.net/
Keywords: bash minecraft official script server
Licenses: custom
Conflicts: minecraft-canary, minecraft-server-systemd
Submitter: sorcix
Maintainer: edh
Last Packager: edh
Votes: 117
Popularity: 0.919019
First Submitted: 2010-11-29 15:52
Last Updated: 2016-08-09 10:01

Required by (0)

Sources (6)

Pinned Comments

edh commented on 2016-06-18 18:24

You can leave the console without shutting down the server by press ctrl+a d (first ctrl+a and after releasing press d) and you will detach from the server console. The attaching and detaching is done with GNU screen since it lets you view and type into the console, sent single commands to it and keep it alive though the user might be logged out. Take a look at the the command overview at the ArchWiki [1] to get a feel for its power. (@carmelo12341)

[1] https://wiki.archlinux.org/index.php/GNU_Screen#Common_Commands

Latest Comments

edh commented on 2016-07-31 10:05

@leifurhauks
Strange, it is working well for me on two different machines and on a clean installation. The game_command function in the script [1] apparently is not working as expected for you. The logic of this function is like this: enable logging for the screen session to file /tmp/minecraftd_screen_command_dump.txt, trigger the command, wait, disable logging for the screen session, cat file, rm file. I assume you installed screen properly, performed no partial upgrade, your /tmp folder is configured and you have shut down your server at least once since you updated to screen version 4.4.0, then I would guess the logfile is not set correctly. Try issuing the following command:
sudo -u minecraft screen -S minecraft -X logfile "/tmp/minecraftd_screen_command_dump.txt"
and see if that fixes the issue for the currently running server. Be sure to check every of the above mentioned pitfalls before!

[1] https://github.com/Edenhofer/abs/blob/master/minecraft-server/minecraftd.sh#L59

leifurhauks commented on 2016-07-30 00:17

Thank you for this great package!

When I run minecraftd command <command>, I always get the following:

cat: /tmp/minecraftd_screen_command_dump.txt: No such file or directory
rm: cannot remove '/tmp/minecraftd_screen_command_dump.txt': No such file or directory

edh commented on 2016-06-26 20:08

Remember to close all minecraft server sessions prior to upgrading GNU screen since you can not reattach to the previous session [1] after the upgrade.

[1] https://www.archlinux.org/news/screen-440-1-unable-to-attach-old-sessions/

edh commented on 2016-06-24 17:21

The recent commit changes a few things in the script:
* Handle server command output completely through screen instead of relying on a possible outdated log file. (Implemented in the game_command function.) The default screen command dump resides in /tmp.
* LOGPATH is not needed anymore.
* Unite various java options into one lengthier SERVER_START_CMD.
* Update configuration file accordingly.

edh commented on 2016-06-18 18:24

You can leave the console without shutting down the server by press ctrl+a d (first ctrl+a and after releasing press d) and you will detach from the server console. The attaching and detaching is done with GNU screen since it lets you view and type into the console, sent single commands to it and keep it alive though the user might be logged out. Take a look at the the command overview at the ArchWiki [1] to get a feel for its power. (@carmelo12341)

[1] https://wiki.archlinux.org/index.php/GNU_Screen#Common_Commands

carmelo12341 commented on 2016-06-18 18:16

Is there a way to terminate the minecraftd console window without killing the server?

edh commented on 2016-05-20 10:05

In a recent commit I changed how the idle server behaves if an admin is connected to the console. To be specific: The player checking is paused as long as someone is
attached to the session. Not only does it make sense for any admin which wants to monitor the console, it also removes annoying list invocations from the console while e.g. typing in it.
In case someone was relying on the previous state, please be sure to let me now ASAP and I will revert the change if necessary.

edh commented on 2016-04-18 18:58

@Svenstaro
Actually my servers tend to run smoothly. Please open a forum thread with your specific problems and send me a link. I would be glad to help.
However I do not like to add those lines to the service file since it would render the server-stop functionality of the script useless if the systemd service is running. The 'always' parameter seems very aggresive [1] to me and not desirable. Even something like 'on-abnormal' might not be a good choice for everybody since especially for small servers uptime is not as important and one would be better of preventing those errors instead of ignoring them.

[1] https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=

Svenstaro commented on 2016-04-18 18:40

I recommend setting

[Service]
Restart=always
RestartSec=5s

in the minecraftd.service file. Minecraft server likes to crash.

lesebas commented on 2016-03-29 20:59

Hello,

You're right about the use of this comments thread, sorry. I have finally solved my problem by installing the server on another computer on my local network. Everything works fine, I don't understand why I can't make it work on another similar archlinux machine. Thanks for your support.

All comments