fix rcon and intruduce systemd integration
This commit is contained in:
parent
a0d0c47b53
commit
0289aab9b0
4 changed files with 44 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
[MMS]
|
||||
hostname = 0.0.0.0
|
||||
port = 25565
|
||||
#password is redacted
|
||||
password =
|
||||
port = 25575
|
||||
password = PUT_PASSWORD_HERE_FROM_server.properties
|
||||
minecraft = true
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue