@EventHandler (priority = EventPriority.HIGH)
	public void onPlayerLogin(PlayerLoginEvent event){
		// Check for bans in the database
		
		if(SQLManager.isBanned(event.getPlayer().getName())){
			plugin.log.info("Banned player " + event.getPlayer().getName() + " attempted to enter the server.");
			Player pl = event.getPlayer();
			event.setKickMessage(""
											+ ChatColor.DARK_RED + "[!]\n"
											+ ChatColor.DARK_RED + "You are banned from this server.\n"
											+ ChatColor.DARK_RED + "Banned by: " + ChatColor.RED + SQLManager.getBanner(pl.getName()) + "\n"
											+ ChatColor.DARK_RED + "Banned on: " + ChatColor.RED + (new java.text.SimpleDateFormat("MM/dd/yyyy kk:mm:ss").format(new java.util.Date(SQLManager.getBanTime(pl.getName())))) + "\n"
											+ ChatColor.DARK_RED + "Banned until: " + ChatColor.RED + (new java.text.SimpleDateFormat("MM/dd/yyyy kk:mm:ss").format(new java.util.Date(SQLManager.getBanExpire(pl.getName())))) + "\n"
											+ ChatColor.DARK_RED + "Reason: " + ChatColor.RED + SQLManager.getBanReason(pl.getName()));
			event.setResult(Result.KICK_OTHER);
		}
	}