Skip to content

Commit

Permalink
Expose silentForceLogin to api (AuthMe#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed May 29, 2024
1 parent de69919 commit ce60648
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/fr/xephi/authme/api/v3/AuthMeApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,16 @@ public void forceLogin(Player player) {
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.
*
Expand Down

0 comments on commit ce60648

Please sign in to comment.