mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 06:48:16 -07:00
Revert "Fix query-json command missing quotation marks"
This reverts commit f3ddb10637
.
Woops I didn't mean to push it directly, sorry
This commit is contained in:
parent
f3ddb10637
commit
0ffa8a4808
2
msctl
2
msctl
@ -1616,7 +1616,7 @@ queryDetailedStatusJSON() {
|
||||
if [ -n "$STATUS" ]; then
|
||||
NUMPLAYERS=$(printf "%s" "$STATUS" | cut -f 19)
|
||||
if [ $NUMPLAYERS -gt 0 ]; then
|
||||
PLAYERS=$(printf "%s\"" "$PLAYERS" $(printf "%s" "$STATUS" | cut -f $((30))))
|
||||
PLAYERS=$(printf "\"%s\"" "$STATUS" | cut -f 30)
|
||||
COUNTER=1
|
||||
while [ $COUNTER -lt $NUMPLAYERS ]; do
|
||||
PLAYERS=$(printf "%s, \"%s\"" "$PLAYERS" $(printf "%s" "$STATUS" | cut -f $((30+$COUNTER))))
|
||||
|
Loading…
Reference in New Issue
Block a user