[FIX] Исправление белых списков

This commit is contained in:
Gravit 2019-07-01 17:21:19 +07:00
parent c6782d86a7
commit 25ccda7ae2
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -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) {