From 761b1feadb0529d2ac8db30dd8e51c894032fed2 Mon Sep 17 00:00:00 2001 From: Xephi59 Date: Mon, 29 Jun 2015 03:25:23 +0200 Subject: [PATCH] What the fuck was that shit --- .../xephi/authme/listener/AuthMePlayerListener.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java index a38d5d1f9..0ca95f295 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java @@ -443,15 +443,12 @@ public class AuthMePlayerListener implements Listener { return; } - if (data.isAuthAvailable(name) && !LimboCache.getInstance().hasLimboPlayer(name)) { - if (!Settings.isSessionsEnabled) { - } else if (PlayerCache.getInstance().isAuthenticated(name)) { - if (!Settings.sessionExpireOnIpChange) - if (LimboCache.getInstance().hasLimboPlayer(player.getName().toLowerCase())) { + if (data.isAuthAvailable(name) && LimboCache.getInstance().hasLimboPlayer(name)) + if (Settings.isSessionsEnabled) + if (PlayerCache.getInstance().isAuthenticated(name)) + if (!Settings.sessionExpireOnIpChange) LimboCache.getInstance().deleteLimboPlayer(name); - } - } - } + // Check if forceSingleSession is set to true, so kick player that has // joined with same nick of online player if (player.isOnline() && Settings.isForceSingleSessionEnabled) {