Skip to content

Commit

Permalink
prepare more config
Browse files Browse the repository at this point in the history
  • Loading branch information
UplandJacob2 authored Nov 10, 2024
1 parent e64280f commit 0e5f297
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions mc-all-platform-velocity/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ echo ""
VEL_ROOT_CONFIG=$(bashio::config 'rootConfig')
VEL_SERVERS=$(bashio::config 'servers')
VEL_SERV_ATT_JOIN_ORD=$(jq --raw-output '.serverAttemptJoinOrder' $CONFIG_PATH)
VEL_FORCED_HOSTS=$(jq --raw-output '.forcedHosts' $CONFIG_PATH)
VEL_ADVANCED=$(bashio::config 'advanced')

# main section
echo ""
logGreen "velocity rootConfig JSON:"
Expand Down Expand Up @@ -53,14 +56,22 @@ logGreen "velocity serverAttemptJoinOrder formatted:"
echo $vel_serv_ord
echo ""

echo -e "config-version = \"2.7\"\nbind = \"0.0.0.0:25565\"\n$vel_root_config\n[servers]\n$vel_servers\n\ntry = [\n$vel_serv_ord\n]\n" > velocity.toml
logGreen "velocity.toml:"
cat velocity.toml
# [forced-hosts] section
logGreen "velocity forcedHosts JSON:"
echo $VEL_FORCED_HOSTS
echo ""

# DEBUG_MODE=$(bashio::config 'debugMode')

# [advanced] section
logGreen "velocity advanced JSON:"
echo $VEL_ADVANCED
echo ""



echo -e "config-version = \"2.7\"\nbind = \"0.0.0.0:25565\"\n$vel_root_config\n[servers]\n$vel_servers\n\ntry = [\n$vel_serv_ord\n]\n[forced-hosts]\n" > velocity.toml
logGreen "velocity.toml:"
cat velocity.toml



Expand Down

0 comments on commit 0e5f297

Please sign in to comment.