mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Correct error in checkServer
This commit is contained in:
parent
2171fb291f
commit
b5aeac3ff2
1 changed files with 6 additions and 4 deletions
|
@ -31,11 +31,13 @@ public void execute(ChannelHandlerContext ctx, Client pClient) {
|
||||||
try {
|
try {
|
||||||
server.authHookManager.checkServerHook.hook(this, pClient);
|
server.authHookManager.checkServerHook.hook(this, pClient);
|
||||||
AuthManager.CheckServerReport report = server.authManager.checkServer(pClient, username, serverID);
|
AuthManager.CheckServerReport report = server.authManager.checkServer(pClient, username, serverID);
|
||||||
if (report != null) {
|
if(report == null) {
|
||||||
result.playerProfile = report.playerProfile;
|
sendError("User not verified");
|
||||||
result.uuid = report.uuid;
|
return;
|
||||||
logger.debug("checkServer: {} uuid: {} serverID: {}", result.playerProfile == null ? null : result.playerProfile.username, result.uuid, serverID);
|
|
||||||
}
|
}
|
||||||
|
result.playerProfile = report.playerProfile;
|
||||||
|
result.uuid = report.uuid;
|
||||||
|
logger.debug("checkServer: {} uuid: {} serverID: {}", result.playerProfile == null ? null : result.playerProfile.username, result.uuid, serverID);
|
||||||
} catch (AuthException | HookException e) {
|
} catch (AuthException | HookException e) {
|
||||||
sendError(e.getMessage());
|
sendError(e.getMessage());
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue