fix rcon and intruduce systemd integration

This commit is contained in:
anonoe 2025-12-16 00:36:16 +01:00
parent a0d0c47b53
commit 0289aab9b0
4 changed files with 44 additions and 6 deletions

View file

@ -1 +1,15 @@
rcon -c /mnt/rcon/rconrc -s MMS stop
alias rc='rcon -c /mnt/rcon/rconrc -s MMS '
rc 'tellraw @a ["",{"text":"!WARNING!","bold":true,"color":"red"}," The server will ",{"text":"shut down or restart","hoverEvent":{"action":"show_text","contents":"The state is unknown (like quantum physics)"}}," in",{"text":" 10","color":"dark_red"}," seconds..."]'
sleep 5
rc 'tellraw @a ["Stopping in"]'
rc 'tellraw @a {"text":"5","color":"red"}'
sleep 1
rc 'tellraw @a {"text":"4","color":"red"}'
sleep 1
rc 'tellraw @a {"text":"3","color":"red"}'
sleep 1
rc 'tellraw @a {"text":"2","color":"dark_red"}'
sleep 1
rc 'tellraw @a ["",{"text":"!","obfuscated":true,"color":"dark_red"},{"text":" 1 ","color":"dark_red"},{"text":"!","obfuscated":true,"color":"dark_red"}]'
sleep 1
rc stop