diff --git a/README.md b/README.md index 81bd9f4..3883253 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,11 @@ To switch user use: - [x] BASH script - [x] manual set up of min/max RAM - [x] auto add proxy mod (ProxyMod)[https://cdn.modrinth.com/data/vDyrHl8l/versions/K43ePlgq/proxy-compatible-forge-1.20-1.1.4.jar] - - [ ] Do I need it? what is modern forwarding??? yes I need + - [x] Do I need it? what is modern forwarding??? yes I need - [x] config/pcf-common.toml Forwarding secrets - [x] Update server.properties (whitelist, online-mode=false, name, ...) - [ ] TerraLith to world gen +- [x] config/pcf-* file with forwarding secret +- [ ] SkinRestorer + + diff --git a/data/pcf-common.toml b/data/pcf-common.toml new file mode 100644 index 0000000..4f5cd43 --- /dev/null +++ b/data/pcf-common.toml @@ -0,0 +1,5 @@ +#Modern Forwarding Settings +[modernForwarding] + forwardingSecret = "CLN4RKWSxUUm" + + diff --git a/script.sh b/script.sh index 983b6f4..c229a1d 100755 --- a/script.sh +++ b/script.sh @@ -102,7 +102,12 @@ fi printf "Are you planing to use Velocity proxy to acces this server? [Y/n]: \n" read ansVeloProxy +if [[ "$ansVeloProxy" =~ ("y"|"Y") || -z $ansVeloProxy ]]; then + + printf "Do you wish to set up moder forwarding? [Y/n]: \n" + read ansModernFarward +fi sleep 2 @@ -160,8 +165,16 @@ cd .. # adds mode to help comunicate with VeloProxy if [[ "$ansVeloProxy" =~ ["y"|"Y"] || -z $ansVeloProxy ]]; then mv data/proxy-compatible-forge*.jar /opt/minecraft/mods/ + + if [[ "$ansModernFarward" =~ ["y"|"Y"] || -z $ansModernFarward ]]; then + mkdir /opt/minecraft/config + mv data/pcf-common.toml /opt/minecraft/config/ + fi fi + + + ### Permisions ### printf "\n+ Permision handeling\n" chown -R minecraft:minecraft /opt/minecraft