From 3c9237e1937ec651f650ebceb6b6cdedf091cc2a Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Sun, 21 Apr 2024 15:52:30 +0200 Subject: [PATCH] autocommit --- utils/fn_server/broadcast.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/fn_server/broadcast.sh b/utils/fn_server/broadcast.sh index ef85b61..1f9f41d 100644 --- a/utils/fn_server/broadcast.sh +++ b/utils/fn_server/broadcast.sh @@ -2,5 +2,6 @@ function broadcast() { local dir="$(getValueByKey 'PODMAN_DIRECTORY')/${1}" - podman exec -it "$1" rcon -m -H 127.0.0.1 -p 25575 -P $(grep -E "^rcon.password" $dir/data/server.properties | cut -d= -f2) tellraw @a {\"text\": \"$2\"} + podman exec -it "$1" rcon -m -H 127.0.0.1 -p 25575 -P $(grep -E "^rcon.password" $dir/data/server.properties | cut -d= -f2)\ + tellraw @a [{\"text\":\"[SYSTEM] \",\"color\":\"red\",\"bold\":true}{\"text\": \"$2\"}] }