diff --git a/pom.xml b/pom.xml index 9bbbd39b5..c4118541e 100644 --- a/pom.xml +++ b/pom.xml @@ -229,7 +229,7 @@ spigot-repo - http://hub.spigotmc.org/nexus/content/groups/public + https://hub.spigotmc.org/nexus/content/repositories/snapshots diff --git a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java index 2feff435c..040c98fb3 100644 --- a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java +++ b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java @@ -225,7 +225,7 @@ public class AsynchronousJoin { ? m.retrieve(MessageKey.REGISTER_EMAIL_MESSAGE) : m.retrieve(MessageKey.REGISTER_MESSAGE); } - if (LimboCache.getInstance().getLimboPlayer(name) != null) { + if (msgInterval > 0 && LimboCache.getInstance().getLimboPlayer(name) != null) { BukkitTask msgTask = sched.runTaskAsynchronously(plugin, new MessageTask(plugin, name, msg, msgInterval)); LimboCache.getInstance().getLimboPlayer(name).setMessageTaskId(msgTask); }