|
@ -48,4 +48,19 @@ minecraft:make-whitelist() { |
|
|
'to_entries | map({"uuid": .key, "name": .value})' |
|
|
'to_entries | map({"uuid": .key, "name": .value})' |
|
|
} > "$SERVICE_DATASTORE/${MINECRAFT_DATA}/whitelist.json" |
|
|
} > "$SERVICE_DATASTORE/${MINECRAFT_DATA}/whitelist.json" |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
minecraft:make-ops() { |
|
|
|
|
|
local ops="$1" |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
e "$ops" | |
|
|
|
|
|
yq -o=json \ |
|
|
|
|
|
'to_entries | map({ |
|
|
|
|
|
"uuid": .value.uuid, |
|
|
|
|
|
"name": .key, |
|
|
|
|
|
"level": .value.level, |
|
|
|
|
|
"bypassesPlayerLimit": .value.bypassesPlayerLimit |
|
|
|
|
|
})' |
|
|
|
|
|
} > "$SERVICE_DATASTORE/${MINECRAFT_DATA}/ops.json" |
|
|
} |
|
|
} |