Fix shit (kinda)

This commit is contained in:
catfoolyou
2025-02-24 14:43:59 -05:00
parent 77b143500a
commit c40c57299f
9 changed files with 145 additions and 125 deletions

View File

@@ -313,7 +313,7 @@ public class YamlConfig implements ConfigurationAdapter {
if(c == null) {
c = new ArrayList();
c.add("https://g.lax1dude.net/eaglercraft/origin_blacklist.txt");
c.add("https://raw.githubusercontent.com/LAX1DUDE/eaglercraft/main/stable-download/origin_blacklist.txt");
//c.add("https://raw.githubusercontent.com/LAX1DUDE/eaglercraft/main/stable-download/origin_blacklist.txt");
c = this.get("origin_blacklist_subscriptions", c);
}else {
if(c.remove("https://g.eags.us/eaglercraft/origin_blacklist.txt")) {

View File

@@ -101,18 +101,19 @@ public class InitialHandler extends PacketHandler implements PendingConnection {
@Override
public void handle(final Packet2Handshake handshake) throws Exception {
System.out.println("Handshake");
Preconditions.checkState(this.thisState == State.HANDSHAKE, (Object) "Not expecting HANDSHAKE");
this.handshake = handshake;
this.bungee.getLogger().log(Level.INFO, "{0} has connected", this);
boolean skipEncryption = false;
if (handshake.getProcolVersion() == 69) {
if (handshake.getProcolVersion() == 78) {
skipEncryption = true;
this.handshake.swapProtocol((byte) 78);
}else if(handshake.getProcolVersion() > 78) {
this.disconnect("this server does not support microsoft accounts");
return;
}else if(handshake.getProcolVersion() != 78) {
this.disconnect("minecraft 1.5.2 required for eaglercraft backdoor access");
this.disconnect("minecraft 1.6.4 required for eaglercraft backdoor access");
return;
}
String un = handshake.getUsername();