Expose silentForceLogin to api (#2819)

This commit is contained in:
HaHaWTH 2024-05-29 13:37:37 +08:00
parent de69919c01
commit ce60648233

View File

@ -265,6 +265,16 @@ public class AuthMeApi {
management.forceLogin(player);
}
/**
* Force a player to login, i.e. the player is logged in without needing his password.
*
* @param player The player to log in
* @param quiet Whether to suppress the login message
*/
public void forceLogin(Player player, boolean quiet) {
management.forceLogin(player, quiet);
}
/**
* Force a player to logout.
*