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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user