diff --git a/README.md b/README.md index 1b4abd1..9224f9d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ ### smashed together by [ayunami2000](https://github.com/ayunami2000) +**THIS REPLIT USES [PluginInstaller](https://github.com/darverdevs/PluginInstaller)** + ## Helpful video tutorial by a generous user motd changing is DIFFERENT than what these tutorials say!! -- check the `java/bungee_command/config.yml` for how to change (motd1 is first line, motd2 (you can add this) is the 2nd one) diff --git a/base.repl b/base.repl new file mode 100644 index 0000000..ea844c1 --- /dev/null +++ b/base.repl @@ -0,0 +1 @@ +uwu \ No newline at end of file diff --git a/main.sh b/main.sh index 9342fc9..1978690 100644 --- a/main.sh +++ b/main.sh @@ -50,7 +50,9 @@ else curl -L -o stable-download.zip "$eagurl" echo extracting zip... mkdir /tmp/new - unzip stable-download.zip -d /tmp/new + cd /tmp/new + jar xvf $HOME/$REPL_SLUG/stable-download.zip + cd $HOME/$REPL_SLUG echo deleting original zip file... rm -rf stable-download.zip mkdir web @@ -116,6 +118,19 @@ rm -rf nginx.conf sed "s/eaglercraft-server/$REPL_SLUG/" nginx_template.conf > nginx.conf nginx -c ~/$REPL_SLUG/nginx.conf -g 'daemon off; pid /tmp/nginx/nginx.pid;' -p /tmp/nginx -e /tmp/nginx/error.log > /tmp/nginx/output.log 2>&1 & +if [ -f "base.repl" ] && ! { [ "$REPL_OWNER" == "ayunami2000" ] && [ "$REPL_SLUG" == "eaglercraft-server" ]; }; +then + echo resetting world and randomizing seed... + rm base.repl + rm -rf java/bukkit_command/world + rm -rf java/bukkit_command/world_nether + rm -rf java/bukkit_command/world_the_end + rm -f java/bukkit_command/server.log.lck + rm java/bukkit_command/server.log + rm -f java/bungee_command/proxy.log.0.lck + rm java/bungee_command/proxy.log.0 +fi + echo starting bukkit... cd java/bukkit_command java -Xmx512M -Xms512M -jar craftbukkit-1.5.2-R1.0.jar