public static boolean isBanned(String playerName){
    	boolean banned = false;
    	
    	try {
    		SQL_STATEMENT = SQL_CONNECTION.createStatement();
    		SQL_RESULTSET = SQL_STATEMENT.executeQuery("SELECT * FROM bans WHERE username='" + playerName + "'");
    		
    		// This loop checks all bans on record for the user to see if any tempbans are still active
    		// Note tempbans are done in DAYS, the argument is a Double
    		// For example 0.5 would be 0.5(1 day)=12hours
    		// .1 -> 2.4 hours
    		// 7 = 7 days, etc.
    		while (SQL_RESULTSET.next()) {       	
            	if(SQL_RESULTSET.getLong("expire") > System.currentTimeMillis()){
            		banned = true; // The user is banned
            	}
            }
    		
    		SQL_RESULTSET.close();
    		SQL_STATEMENT.close();
    	} catch(SQLException e){
    		e.printStackTrace();
    	}
    	
    	return banned;
    }