From 25ccda7ae23b794044fb5070f683cfec9db814bc Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 1 Jul 2019 17:21:19 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B5=D0=BB=D1=8B=D1=85?= =?UTF-8?q?=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../launchserver/socket/response/auth/AuthResponse.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/AuthResponse.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/AuthResponse.java index c5f0d8e2..d732f2f3 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/AuthResponse.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/AuthResponse.java @@ -104,6 +104,10 @@ public void execute(ChannelHandlerContext ctx, Client clientData) throws Excepti clientData.permissions = aresult.permissions; clientData.auth_id = auth_id; clientData.updateAuth(server); + if(result.playerProfile != null) + clientData.username = result.playerProfile.username; + else + clientData.username = login; result.accessToken = aresult.accessToken; result.permissions = clientData.permissions; if (authType == ConnectTypes.BOT && !clientData.permissions.canBot) {