src/main/java/be/hctel/renaissance/ranks/RankManager.java
public void load(Player player) { 
		if(!(cache.containsKey(Utils.getUUID(player)))) {
			Statement st;
			try {
				st = con.createStatement();
				ResultSet rs = st.executeQuery("SELECT * FROM RANKS WHERE UUID ='" + Utils.getUUID(player) + "';");
				if(rs.next()) {
					cache.put(Utils.getUUID(player), Ranks.getRank(rs.getInt("rankID")));
					hideCache.put(Utils.getUUID(player), rs.getInt("hiddenRank"));
				} else {
					st.execute("INSERT INTO RANKS (UUID) VALUES ('" + Utils.getUUID(player) + "');");
				}
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}	
		}
	}
/**
	 * Loads the rank of a player
	 * @param player
	 */
Loads the rank of a player
@param player
Loads the rank of a player @param player
public void load(Player player) { 
		if(!(cache.containsKey(Utils.getUUID(player)))) {
			Statement st;
			try {
				st = con.createStatement();
				ResultSet rs = st.executeQuery("SELECT * FROM RANKS WHERE UUID ='" + Utils.getUUID(player) + "';");
				if(rs.next()) {
					cache.put(Utils.getUUID(player), Ranks.getRank(rs.getInt("rankID")));
					hideCache.put(Utils.getUUID(player), rs.getInt("hiddenRank"));
				} else {
					st.execute("INSERT INTO RANKS (UUID) VALUES ('" + Utils.getUUID(player) + "');");
				}
			} catch (SQLException e) {
				e.printStackTrace();
			}	
		}
	}
public void load ( Player player ) { if ( ! ( cache . containsKey ( Utils . getUUID ( player ) ) ) ) { Statement st ; try { st = con . createStatement ( ) ; ResultSet rs = st . executeQuery ( "SELECT * FROM RANKS WHERE UUID ='" + Utils . getUUID ( player ) + "';" ) ; if ( rs . next ( ) ) { cache . put ( Utils . getUUID ( player ) , Ranks . getRank ( rs . getInt ( "rankID" ) ) ) ; hideCache . put ( Utils . getUUID ( player ) , rs . getInt ( "hiddenRank" ) ) ; } else { st . execute ( "INSERT INTO RANKS (UUID) VALUES ('" + Utils . getUUID ( player ) + "');" ) ; } } catch ( SQLException e ) { e . printStackTrace ( ) ; } } }
Loads the rank of a player
 @param player
Loads the rank of a player @param player
// TODO Auto-generated catch block