From b60daae93661c655492a6335a6ad7906d0fbcdfc Mon Sep 17 00:00:00 2001 From: Xephi59 Date: Fri, 17 Jul 2015 20:35:01 +0200 Subject: [PATCH] Sync this --- .../fr/xephi/authme/process/join/AsyncronousJoin.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java b/src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java index cf0fa83a2..6243a6272 100644 --- a/src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java +++ b/src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java @@ -87,7 +87,14 @@ public class AsyncronousJoin { } if (Settings.getMaxJoinPerIp > 0 && !plugin.authmePermissible(player, "authme.allow2accounts") && !ip.equalsIgnoreCase("127.0.0.1") && !ip.equalsIgnoreCase("localhost")) { if (plugin.hasJoinedIp(player.getName(), ip)) { - player.kickPlayer("A player with the same IP is already in game!"); + sched.scheduleSyncDelayedTask(plugin, new Runnable() { + + @Override + public void run() { + player.kickPlayer("A player with the same IP is already in game!"); + } + + }); return; } }