mirror of
https://github.com/GeyserMC/GeyserConnect.git
synced 2025-06-26 06:15:21 +02:00
Check the user had authenticated before handling disconnect
This commit is contained in:
parent
0e5db578e9
commit
94a636ad3f
2 changed files with 4 additions and 3 deletions
|
@ -63,9 +63,11 @@ public class PacketHandler extends UpstreamPacketHandler {
|
|||
|
||||
@Override
|
||||
public void onDisconnect(String reason) {
|
||||
if (session.getAuthData() != null) {
|
||||
geyserConnect.logger().info(Utils.displayName(session) + " has disconnected (" + reason + ")");
|
||||
ServerManager.unloadServers(session);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public PacketSignal handle(SetLocalPlayerAsInitializedPacket packet) {
|
||||
|
|
|
@ -95,7 +95,6 @@ public class UIHandler {
|
|||
.label(message)
|
||||
.resultHandler((customForm, customFormResponseFormResponseResult) -> {
|
||||
sendMainMenu();
|
||||
// this.sendToServer(new Server("test.geysermc.org", 25565));
|
||||
})
|
||||
.build());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue