switch to craftbukkit because spigot crashed whenever there are two or more players

This commit is contained in:
LAX1DUDE 2021-12-18 20:04:36 -08:00
parent 0fde4b6ab0
commit a50bc7ab82
86 changed files with 50 additions and 134 deletions

View File

@ -18,9 +18,9 @@ Eaglercraft uses the decompiled source of the official version of Minecraft 1.5.
If you want to use this project but don't want to compile it from scratch, download [stable-download/stable-download.zip](https://github.com/LAX1DUDE/eaglercraft/raw/main/stable-download/stable-download.zip) and extract
Within stable-download.zip there is a 'java' and a 'web' folder. Upload the contents of the web folder to your web server. **Eaglercraft will not work if it is opened locally via file:///, it needs to be on an http:// or https:// page. Try [this extention](https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb/) if you are on chrome.** The eaglercraft bungeecord executable is in the java/bungee_command folder along with the sample configuration file and a run.bat script to launch it. Spigot for minecraft 1.5.2 configured to work with the eaglercraft bungee executable is in java/spigot_command.
Within stable-download.zip there is a 'java' and a 'web' folder. Upload the contents of the web folder to your web server. **Eaglercraft will not work if it is opened locally via file:///, it needs to be on an http:// or https:// page. Try [this extention](https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb/) if you are on chrome.** The eaglercraft bungeecord executable is in the java/bungee_command folder along with the sample configuration file and a run.bat script to launch it. CraftBukkit for minecraft 1.5.2 configured to work with the eaglercraft bungee executable is in java/bukkit_command. This version of minecraft's Spigot build doesn't work with bungee so you are limited to CraftBukkit plugins only on your server, unless you set up a newer version of Spigot and install ViaVersion or whatever it's called to make it backwards compatible.
To play the game, launch the run.bat script in both the bungee_command and spigot_command folders. Then navigate to the URL where the contents of the web folder ended up. The game should load without any issues. Go to the Multiplayer screen and select 'Direct Connect'. **Type 127.0.0.1:25565.** Press connect or whatever and enjoy, the default port configured in the bungeecord config.yml is 25565 instead of 80 to avoid any potential conflict with the local web server or the OS (and linux desktop users can't use port numbers under 1024 without sudo).
To play the game, launch the run.bat script in both the bungee_command and bukkit_command folders. Then navigate to the URL where the contents of the web folder ended up. The game should load without any issues. Go to the Multiplayer screen and select 'Direct Connect'. **Type 127.0.0.1:25565.** Press connect or whatever and enjoy, the default port configured in the bungeecord config.yml is 25565 instead of 80 to avoid any potential conflict with the local web server or the OS (and linux desktop users can't use port numbers under 1024 without sudo).
**The default behavior in Eaglercraft if no :port is provided when connecting to a server is to use port 80, not port 25565. This is so the game's websocket in a production environment does not get blocked by any of the clients' firewalls. Also this enables you to use Cloudflare and nginx to create reverse proxy connections on the site to host multiple servers on the same domain.**

3
bukkit-server/run.bat Normal file
View File

@ -0,0 +1,3 @@
@echo off
java -Xmx512M -Xms512M -jar craftbukkit-1.5.2-R1.0.jar
pause

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
י<D7A0>g<EFBFBD>D´<44>Mם³<D79D>צ<>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
{_¸+PEc¹ <20>Í°|aã

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
ûÚå<EFBFBD>å<EFBFBD>D¶£OΊ§¿ïh

Binary file not shown.

View File

@ -8,7 +8,7 @@ eaglercraft makes use of baislsl's java PNG decoder, which is available at §nht
all graphical assets in this project were ripped from mojang's official minecraft.jar for minecraft version 1.5.2 and they are mojang's intellectual property. assets ommitted include the minecraft soundtrack and music disks and all software references to the mojang/minecraft api.
eaglercraft servers are powered by md_5's BungeeCord and the Spigot project available at §nhttp://www.spigotmc.org/§r. BungeeCord has been modified to accept eaglercraft's unorthodox login packets and to include a websocket server to translate browser connections to a format that vanilla Spigot can understand. All plugins designed for Spigot/CraftBukkit 1.5.2 are still compatible with this configuration.
eaglercraft servers are powered by md_5's BungeeCord and the CraftBukkit project available at §nhttp://www.spigotmc.org/§r. BungeeCord has been modified to accept eaglercraft's strange login packets and to host a websocket server to translate browser connections to raw TCP that vanilla Spigot can understand. All java plugins designed for CraftBukkit 1.5.2 are compatible with this configuration.
scroll down for the detailed license statements

View File

@ -1,3 +0,0 @@
@echo off
java -Xmx512M -Xms512M -jar spigot-1.5.2-R1.1-SNAPSHOT.jar
pause

View File

@ -1,87 +0,0 @@
# This is the main configuration file for Spigot.
# As you can see, there's tons to configure. Some options may impact gameplay, so use
# with caution, and make sure you know what each option does before configuring.
# For a reference for any variable inside this file, check out the Spigot wiki at
# http://www.spigotmc.org/wiki/spigot-configuration/
#
# If you need help with the configuration or have any questions related to Spigot,
# join us at the IRC or drop by our forums and leave a post.
#
# IRC: #spigot @ irc.esper.net ( http://webchat.esper.net/?channel=spigot )
# Forums: http://www.spigotmc.org/forum/
config-version: 1
commands:
tab-complete: true
log: true
spam-exclusions:
- /skill
messages:
whitelist: You are not whitelisted on this server!
unknown-command: Unknown command. Type "help" for help.
server-full: The server is full!
listeners:
- port: default
host: default
netty: true
settings:
netty-threads: 3
timeout-time: 60
restart-on-crash: true
restart-script: ./start.sh
log-filters:
- ^(.*)(/login)(.*)$
prevent-proxies: false
bungeecord-addresses:
- 127.0.0.1
bungeecord: true
world-settings:
default:
verbose: true
view-distance: 10
chunks-per-tick: 650
merge-radius:
exp: 3.0
item: 2.5
mob-spawn-range: 4
anti-xray:
enabled: true
engine-mode: 1
blocks:
- 1
- 5
- 14
- 15
- 16
- 21
- 48
- 49
- 54
- 56
- 73
- 74
- 82
- 129
- 130
ticks-per:
hopper-check: 8
hopper-transfer: 8
growth:
cactus-modifier: 100
cane-modifier: 100
melon-modifier: 100
mushroom-modifier: 100
pumpkin-modifier: 100
sapling-modifier: 100
wheat-modifier: 100
entity-activation-range:
animals: 32
monsters: 32
misc: 16
entity-tracking-range:
players: 48
animals: 48
monsters: 48
misc: 32
other: 64
random-light-updates: false

View File

@ -0,0 +1,3 @@
@echo off
java -Xmx512M -Xms512M -jar craftbukkit-1.5.2-R1.0.jar
pause

View File

@ -1,3 +0,0 @@
@echo off
java -Xmx512M -Xms512M -jar spigot-1.5.2-R1.1-SNAPSHOT.jar
pause

Binary file not shown.

Binary file not shown.