diff --git a/README.md b/README.md index 2d3bd37..518cc62 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ - [x] Tailscale - [x] Integrate ReWhitelist plugin - [x] Auto set up logo intagret to script -- [ ] SkinRestorer auto setup +- [x] SkinRestorer auto setup +- [ ] Better system for plugin install checks - [ ] Checks for what is done ## To learn diff --git a/data/SkinsRestorer.jar b/data/SkinsRestorer.jar new file mode 100644 index 0000000..2a670f9 Binary files /dev/null and b/data/SkinsRestorer.jar differ diff --git a/script.sh b/script.sh index 2bb3c8b..455d4af 100755 --- a/script.sh +++ b/script.sh @@ -169,13 +169,21 @@ fi printf "Do you want to run it with whitelist plugin? [Y/n]: \n" read ansWhite -if [[ "$ansForge" =~ ("Y"|"y") || -z $ansForge ]]; then +if [[ "$ansWhite" =~ ("Y"|"y") || -z $ansWhite ]]; then printf "+ adding reqired plugin \n" mv data/ReWhitelist*.jar /opt/velocity/plugins mkdir /opt/velocity/whitelists mv data/whitelists/* /opt/velocity/whitelists/ fi +printf "Do you want to run it with SkinRestorer? [Y/n]: \n" +read ansSkin + +if [[ "$ansSkin" =~ ("Y"|"y") || -z $ansSkin ]]; then + printf "+ adding reqired plugin \n" + mv data/SkinsRestorer.jar /opt/velocity/plugins +fi + ### Start service printf "Do you want to start velocity proxy right now? [Y/n]: \n"