From 92287cb5ddc5952cb42f82886d1c0864ff304324 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Thu, 19 May 2016 23:18:16 +0200 Subject: [PATCH] Delay the first "please login/register" message on join --- .../java/fr/xephi/authme/process/join/AsynchronousJoin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 3aff89417..26336869a 100644 --- a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java +++ b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java @@ -224,9 +224,9 @@ public class AsynchronousJoin implements Process { : MessageKey.REGISTER_MESSAGE; } if (msgInterval > 0 && LimboCache.getInstance().getLimboPlayer(name) != null) { - BukkitTask msgTask = service.runTask(new MessageTask(service.getBukkitService(), plugin.getMessages(), - name, msg, msgInterval)); - LimboPlayer limboPlayer = LimboCache.getInstance().getLimboPlayer(name); + BukkitTask msgTask = service.runTaskLater((Runnable)new MessageTask(service.getBukkitService(), plugin.getMessages(), + name, msg, msgInterval), 20L); + LimboPlayer limboPlayer = LimboCache.getInstance().getLimboPlayer(name); if (limboPlayer != null) { limboPlayer.setMessageTask(msgTask); }