From 6d1e75a7310048a9c3f2fe52d88ea6fea2f85ed1 Mon Sep 17 00:00:00 2001 From: Maxetto Date: Mon, 29 Jun 2015 18:02:42 +0200 Subject: [PATCH] Recall email at login if RecallEmail is active. For somewhat reason email recalls didn't start from login and every 5 minutes. --- .../fr/xephi/authme/process/login/AsyncronousLogin.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/fr/xephi/authme/process/login/AsyncronousLogin.java b/src/main/java/fr/xephi/authme/process/login/AsyncronousLogin.java index a4a91e96c..1a3d2ee20 100644 --- a/src/main/java/fr/xephi/authme/process/login/AsyncronousLogin.java +++ b/src/main/java/fr/xephi/authme/process/login/AsyncronousLogin.java @@ -150,6 +150,14 @@ public class AsyncronousLogin { m.send(player, "login"); 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!");