@@ -0,0 +1,818 @@
+package net.bitjump.bukkit.subwhitelister.listeners;%0D%0A%0D%0Aimport net.bitjump.bukkit.subwhitelister.SubWhitelister;%0D%0Aimport net.bitjump.bukkit.subwhitelister.util.WhitelistManager;%0D%0A%0D%0Aimport org.bukkit.entity.Player;%0D%0Aimport org.bukkit.event.EventHandler;%0D%0Aimport org.bukkit.event.Listener;%0D%0Aimport org.bukkit.event.player.PlayerLoginEvent;%0D%0Aimport org.bukkit.event.player.PlayerLoginEvent.Result;%0D%0A%0D%0Apublic class PlayerListener implements Listener %0D%0A%7B%0D%0A%09@EventHandler%0D%0A%09public void onPlayerLogin(PlayerLoginEvent e)%0D%0A%09%7B%0D%0A%09%09if(!SubWhitelister.config.getBoolean(%22enabled%22)) return;%0D%0A%09%09%0D%0A%09%09Player p = e.getPlayer();%0D%0A%09%09%0D%0A%09%09if(!p.hasPermission(%22subwhitelister.exempt%22))%0D%0A%09%09%7B%0D%0A%09%09%09if(!WhitelistManager.getUsers().contains(p.getName()))%0D%0A%09%09%09%7B%0D%0A%09%09%09%09e.disallow(Result.KICK_WHITELIST, %22Not on the whitelist.%22);%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0A

Add player listener.