From 66b226216d57b5e4e5f7025ab15267cd35a8d81d Mon Sep 17 00:00:00 2001 From: t3hk0d3 Date: Tue, 9 Aug 2011 19:39:09 +0400 Subject: [PATCH] Fixed NPE in onPlayerLogin due unnecessary kickPlayer() call --- .../java/ru/tehkode/modifyworld/handlers/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java index 1439163..4feeea1 100644 --- a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java +++ b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java @@ -78,7 +78,7 @@ public class PlayerListener extends ModifyworldListener { if (user != null && !user.has("modifyworld.login", Bukkit.getServer().getWorlds().get(0).getName())) { event.disallow(PlayerLoginEvent.Result.KICK_WHITELIST, whitelistKickMessage); - event.getPlayer().kickPlayer(whitelistKickMessage); + //event.getPlayer().kickPlayer(whitelistKickMessage); Logger.getLogger("Minecraft").info("Player \"" + user.getName() + "\" were kicked by Modifyworld - lack of modifyworld.login permission"); } }