mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 18:17:41 +00:00
Its a bungee problem
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user