Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
4ba7215616 | ||
|
4476ad6504 | ||
|
fe4c3482f4 | ||
|
3fe37c13df | ||
|
8fa7c63fa5 | ||
|
eaf93a3195 | ||
|
576677a50f | ||
|
f7cfc4b43e |
15
README.md
15
README.md
|
@ -1,16 +1,27 @@
|
||||||
# replit eaglercraft server
|
# replit eaglercraft server
|
||||||
|
|
||||||
[extra help discord server](https://discord.gg/9HfPSp3D)
|
[extra help discord server](https://discord.gg/9HfPSp3D)
|
||||||
|
|
|
||||||
|
[anotha one](https://discord.gg/FBqfmDkF2Z)
|
||||||
|
|
||||||
### smashed together by [ayunami2000](https://github.com/ayunami2000)
|
### smashed together by [ayunami2000](https://github.com/ayunami2000)
|
||||||
|
|
||||||
|
**THIS REPLIT USES [PluginInstaller](https://github.com/darverdevs/PluginInstaller)**
|
||||||
|
|
||||||
|
**LATEST UPDATE: NOW FORWARDS IPS!!**
|
||||||
|
|
||||||
|
**ALSO, IF IT DOESNT WORK, ANOTHER FIX IS TO RENAME THE REPLIT AND THEN RENAME IT BACK**
|
||||||
|
|
||||||
## Helpful video tutorial by a generous user
|
## Helpful video tutorial by a generous user
|
||||||
motd changing is a LOT easier now -- see the top of `main.sh` to change it!!
|
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)
|
||||||
|
|
||||||
https://www.wevideo.com/view/2581865286
|
https://www.wevideo.com/view/2581865286
|
||||||
|
|
||||||
YouTube Mirror: https://www.youtube.com/watch?v=As99AOL_-vM
|
YouTube Mirror: https://www.youtube.com/watch?v=As99AOL_-vM
|
||||||
|
|
||||||
|
## [Helpful Google Doc by a generous user](https://docs.google.com/document/d/1MdaQRQbRXb9wXRtdS-c7OGBMcTh9DO8iAKT6fcpdJ5g/edit)
|
||||||
|
Here in case it helps!
|
||||||
|
|
||||||
## Usage:
|
## Usage:
|
||||||
Fork it, and press "Run" at the top to run the server!
|
Fork it, and press "Run" at the top to run the server!
|
||||||
|
|
||||||
|
@ -63,7 +74,7 @@ Prevents loading spawn chunks on your server. Helps to optimize it greatly!
|
||||||
|
|
||||||
## Not working?
|
## Not working?
|
||||||
1. Make sure you haven't broken any essential files.
|
1. Make sure you haven't broken any essential files.
|
||||||
2. **(try this multiple times, at least 5-10)** Try clicking on the "Shell" tab (next to the "Console" tab) and running `busybox reboot`. Then you can try pressing the Run button again and see if it works.
|
2. **(try this multiple times, at least 5-10. this fixes the "End of Stream" issue among many, many others)** Try clicking on the "Shell" tab (next to the "Console" tab) and running `busybox reboot`. Then you can try pressing the Run button again and see if it works.
|
||||||
3. Join the [official Eaglercraft discord server](https://discord.gg/6yTNkypXWh) and look for any answers there.
|
3. Join the [official Eaglercraft discord server](https://discord.gg/6yTNkypXWh) and look for any answers there.
|
||||||
4. If all else fails, contact me directly **through Discord** at `ayunami2000#5250`
|
4. If all else fails, contact me directly **through Discord** at `ayunami2000#5250`
|
||||||
5. If you do not have access to Discord, THEN you can leave a comment on the Replit.
|
5. If you do not have access to Discord, THEN you can leave a comment on the Replit.
|
23
main.sh
23
main.sh
|
@ -50,9 +50,15 @@ else
|
||||||
curl -L -o stable-download.zip "$eagurl"
|
curl -L -o stable-download.zip "$eagurl"
|
||||||
echo extracting zip...
|
echo extracting zip...
|
||||||
mkdir /tmp/new
|
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...
|
echo deleting original zip file...
|
||||||
rm -rf stable-download.zip
|
rm -rf stable-download.zip
|
||||||
|
mkdir web
|
||||||
|
mkdir java
|
||||||
|
mkdir java/bungee_command
|
||||||
|
mkdir java/bukkit_command
|
||||||
if [ "$syncweb" = "true" ]; then
|
if [ "$syncweb" = "true" ]; then
|
||||||
echo updating web folder...
|
echo updating web folder...
|
||||||
rm -rf web/*
|
rm -rf web/*
|
||||||
|
@ -92,7 +98,7 @@ fi
|
||||||
|
|
||||||
echo starting bungeecord...
|
echo starting bungeecord...
|
||||||
cd java/bungee_command
|
cd java/bungee_command
|
||||||
java -Xmx32M -Xms32M -jar bungee-dist.jar > /dev/null 2>&1 &
|
tmux new -d -s bungee java -Xmx32M -Xms32M -jar bungee-dist.jar
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
if [ "$setserver" = "true" -a "$syncweb" = "true" ]; then
|
if [ "$setserver" = "true" -a "$syncweb" = "true" ]; then
|
||||||
|
@ -112,6 +118,19 @@ rm -rf nginx.conf
|
||||||
sed "s/eaglercraft-server/$REPL_SLUG/" nginx_template.conf > 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 &
|
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...
|
echo starting bukkit...
|
||||||
cd java/bukkit_command
|
cd java/bukkit_command
|
||||||
java -Xmx512M -Xms512M -jar craftbukkit-1.5.2-R1.0.jar
|
java -Xmx512M -Xms512M -jar craftbukkit-1.5.2-R1.0.jar
|
||||||
|
|
|
@ -7,6 +7,8 @@ http {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
listen 8000;
|
listen 8000;
|
||||||
listen [::]:8000;
|
listen [::]:8000;
|
||||||
|
listen 3000;
|
||||||
|
listen [::]:3000;
|
||||||
|
|
||||||
client_body_temp_path /tmp/nginx 1 2;
|
client_body_temp_path /tmp/nginx 1 2;
|
||||||
proxy_temp_path /tmp/nginx-proxy;
|
proxy_temp_path /tmp/nginx-proxy;
|
||||||
|
@ -23,6 +25,7 @@ http {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $http_x_forwarded_for;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@ http {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
listen 8000;
|
listen 8000;
|
||||||
listen [::]:8000;
|
listen [::]:8000;
|
||||||
|
listen 3000;
|
||||||
|
listen [::]:3000;
|
||||||
|
|
||||||
client_body_temp_path /tmp/nginx 1 2;
|
client_body_temp_path /tmp/nginx 1 2;
|
||||||
proxy_temp_path /tmp/nginx-proxy;
|
proxy_temp_path /tmp/nginx-proxy;
|
||||||
|
@ -23,6 +25,7 @@ http {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $http_x_forwarded_for;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,5 +5,6 @@
|
||||||
pkgs.unzip
|
pkgs.unzip
|
||||||
pkgs.nginx
|
pkgs.nginx
|
||||||
pkgs.busybox
|
pkgs.busybox
|
||||||
|
pkgs.tmux
|
||||||
];
|
];
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user