mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-11 18:37:35 +01:00
Recall email at login if RecallEmail is active.
For somewhat reason email recalls didn't start from login and every 5 minutes.
This commit is contained in:
parent
6b70f32afb
commit
6d1e75a731
@ -151,6 +151,14 @@ public class AsyncronousLogin {
|
||||
|
||||
displayOtherAccounts(auth, player);
|
||||
|
||||
if (Settings.recallEmail) {
|
||||
String name = player.getName().toLowerCase();
|
||||
String email = database.getAuth(name).getEmail();
|
||||
if (email == null || email.isEmpty() || email.equalsIgnoreCase("your@email.com"))
|
||||
m.send(player, "add_email");
|
||||
}
|
||||
|
||||
|
||||
if (!Settings.noConsoleSpam)
|
||||
ConsoleLogger.info(player.getName() + " logged in!");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user