mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
log user auto-logins and note to improve
This commit is contained in:
parent
bf7c74e072
commit
ae9d51c8b7
1 changed files with 4 additions and 1 deletions
|
@ -97,8 +97,11 @@ public class UpstreamPacketHandler extends LoggingPacketHandler {
|
||||||
UserAuthenticationInfo info = connector.getConfig().getUserAuths().get(bedrockUsername);
|
UserAuthenticationInfo info = connector.getConfig().getUserAuths().get(bedrockUsername);
|
||||||
|
|
||||||
if (info != null) {
|
if (info != null) {
|
||||||
connector.getLogger().debug("using stored credentials for bedrock user " + session.getAuthenticationData().getName());
|
connector.getLogger().info("using stored credentials for bedrock user " + session.getAuthenticationData().getName());
|
||||||
session.authenticate(info.email, info.password);
|
session.authenticate(info.email, info.password);
|
||||||
|
|
||||||
|
// TODO send a message to bedrock user telling them they are connected (if nothing like a motd
|
||||||
|
// somes from the Java server w/in a few seconds)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue