If a player is not registered then we send a LOGIN plugin message on join (#2275)

* If a player is not registered then we send a LOGIN plugin message on join

* Make looking up a profile optionally quiet

This prevents an issue where a forcedLogin of a player that doesn't exist occurring when an unregistered player switches a server. The first login would tell AuthBungee that the player is logged in, and subsequent switches would have AuthBungee send a performLogin back that would then send an unregistered player error message to the player.

Co-authored-by: bundabrg <bundabrg@grieve.com.au>
Co-authored-by: Gabriele C <sgdc3.mail@gmail.com>
This commit is contained in:
bundabrg
2021-08-30 17:35:36 +08:00
committed by GitHub
parent 5426ada8f3
commit 80e37578b1
4 changed files with 49 additions and 5 deletions
@@ -57,6 +57,10 @@ public class Management {
runTask(() -> asynchronousLogin.forceLogin(player));
}
public void forceLogin(Player player, boolean quiet) {
runTask(() -> asynchronousLogin.forceLogin(player, quiet));
}
public void performLogout(Player player) {
runTask(() -> asynchronousLogout.logout(player));
}