From ce6064823383e551e010a6e242bb7ad1100744e2 Mon Sep 17 00:00:00 2001 From: HaHaWTH Date: Wed, 29 May 2024 13:37:37 +0800 Subject: [PATCH] Expose silentForceLogin to api (#2819) --- src/main/java/fr/xephi/authme/api/v3/AuthMeApi.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/fr/xephi/authme/api/v3/AuthMeApi.java b/src/main/java/fr/xephi/authme/api/v3/AuthMeApi.java index 3d8ab194..fd487d66 100644 --- a/src/main/java/fr/xephi/authme/api/v3/AuthMeApi.java +++ b/src/main/java/fr/xephi/authme/api/v3/AuthMeApi.java @@ -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. *