i forgor to update it on github

This commit is contained in:
ayunami2000 2022-06-20 20:08:26 +00:00
parent fe4c3482f4
commit 4476ad6504
3 changed files with 19 additions and 1 deletions

View File

@ -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)

1
base.repl Normal file
View File

@ -0,0 +1 @@
uwu

17
main.sh
View File

@ -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