mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-15 10:25:22 +01:00
Fixed NPE in onPlayerLogin due unnecessary kickPlayer() call
This commit is contained in:
parent
55450065ce
commit
66b226216d
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user