Its a bungee problem

This commit is contained in:
catfoolyou
2025-02-24 17:01:46 -05:00
parent c40c57299f
commit afda45a8e2
11 changed files with 9 additions and 152 deletions

View File

@@ -84,6 +84,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection {
@Override
public void handle(final PacketFEPing ping) throws Exception {
System.out.println("[InitialHandler - Server pinged]");
ServerPing response = new ServerPing(this.bungee.getProtocolVersion(), this.bungee.getGameVersion(), this.listener.getMotd(), this.bungee.getOnlineCount(), this.listener.getMaxPlayers());
response = this.bungee.getPluginManager().callEvent(new ProxyPingEvent(this, response)).getResponse();
final String kickMessage = ChatColor.DARK_BLUE + "\u0000" + response.getProtocolVersion() + "\u0000" + response.getGameVersion() + "\u0000" + response.getMotd() + "\u0000" + response.getCurrentPlayers() + "\u0000"
@@ -93,6 +94,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection {
@Override
public void handle(final Packet1Login login) throws Exception {
System.out.println("Login");
Preconditions.checkState(this.thisState == State.LOGIN, (Object) "Not expecting FORGE LOGIN");
Preconditions.checkState(this.forgeLogin == null, (Object) "Already received FORGE LOGIN");
this.forgeLogin = login;

View File

@@ -61,6 +61,7 @@ public class WebSocketProxy extends SimpleChannelInboundHandler<ByteBuf> {
}
public boolean connect() {
System.out.println("[WebsocketProxy] - connecting (?)");
try {
if(tcpChannel == null) {
Bootstrap clientBootstrap = new Bootstrap();