mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +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 {
|
||||
server.authHookManager.checkServerHook.hook(this, pClient);
|
||||
AuthManager.CheckServerReport report = server.authManager.checkServer(pClient, username, serverID);
|
||||
if (report != null) {
|
||||
result.playerProfile = report.playerProfile;
|
||||
result.uuid = report.uuid;
|
||||
logger.debug("checkServer: {} uuid: {} serverID: {}", result.playerProfile == null ? null : result.playerProfile.username, result.uuid, serverID);
|
||||
if(report == null) {
|
||||
sendError("User not verified");
|
||||
return;
|
||||
}
|
||||
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) {
|
||||
sendError(e.getMessage());
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue