Adapt the `is_player_online` function to be a little more generic. This
fixes detecting players on cuberite even with the most recent version.
upgpkg: cuberite 1.12b1014-1
upgpkg: spigot 1.13.2+b93-1
Update server-management script to be a little tidier. Sync changes
across minecraft-server, spigot and cuberite.
upgpkg: cuberite 1.12b1013-2
upgpkg: spigot 1.13.2+b93-1
Broaden the scope of the regex which searches for active users in the
minecraftd.sh management script to include more escape sequences. This
notably enables using the idle_server part of the script in combination
with the 'Paper' minecraft server.
upgpkg: cuberite 1.12b975-2
upgpkg: spigot 1.12.2+b73-2
Readd the `WantedBy` directive to allow for proper enabling of the unit.
This might however not work properly as the 'multi-user.target' is now
specified in `WantedBy` and `After`.
upgpkg: cuberite 1.12b975-2
upgpkg: spigot 1.12.2+b73-2
Update the SystemD service file to wait for the multi-user target prior
to initiating the application and remove the 'WantedBy' parameter.
This makes sure that the application does not start prior to the
required user being available.
upgpkg: cuberite 1.12b975-1
upgpkg: spigot 1.12.2+b73-1
Harden management script against code errors and faulty user input by
disallowing the use of undeclared variables ('set -u') and returning on
unhandled errors of invoked programs ('set -e') plus:
* Circumvent '$?' everywhere by using 'if $()' instead.
* Deprecate 'expr' in favor of shell built-ins and '`' for '$()'.
* Use more quotes around variables.
upgpkg: cuberite 1.9.4b712-1
upgpkg: spigot 1.10.2-2
Change the idle_server naming schema in the script.
Previously screen was used to select a session with a specific well
defined name however apparently screen selects anything starting with
the specified pattern. This let to some confusion between the server and
the idle_server. To circumvent this behaviour simply change the naming
schema of the idle_server. THIS IS NOT A FIX! - part 2
Previously screen was used to select a session with a specific well
defined name however apparently screen selects anything starting with
the specified pattern. This let to some confusion between the server and
the idle_server. To circumvent this behaviour simply change the naming
schema of the idle_server. THIS IS NOT A FIX!
* invoke SESSION_NAME when setting IDLE_SESSION_NAME
* make the destination of the game command dump configurable
* surpress error messages when sourcing since some variables might be
set to read-only
* 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.
* Create log dir in PKGBUILD.
* Fix some style inconsistencies.
Pause player checking when in idle_server mode as long as someone is
connected to the server console. 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.
upgpkg: minecraft-server 1.9.4-2
upgpkg: spigot 1.9.4-2
Reset timer to ( IDLE_IF_TIME - 300 seconds [5 min.] ) on shutdown, so
after pinging the server it will go down earlier instead of waiting the
full IDLE_IF_TIME. This only affects the idle_server_daemon.
Gmail has been my main email address for a couple of years and the
yahoo.de address is merely my spam mail. Since I trust Google spam
filers and have a certain aversion for yahoo mail, I am switching.
Escape colored game-command output when evaluating the logs. Though this
is not the default for the stock server, some plugins add color to e.g.
list.
Set tail -f refresh interval to 0.1s (default 1s) to speedily escape.
Do not save server files immediately before going down in case there is
no player on the server. The files are saved on shutdown eitherway and
the save-all command heavily delays the list command which is triggered
later.
The list command prints a line containing the usernames after the last
occurrence of ": " and since playernames may not contain this string the
clean player-list can be easily retrieved through the use of sed. This
surpasses the usefulness of the player_delimiter.
Increase waiting period between executing the list game-command and
scanning the logs from 0.3 seconds to 0.6 seconds.
Tweak tail -f command in server_command.
Use ${_game} variable aggressively in PKGBUILD.