public static HashMap<String, Profile> loadProfiles() {
		LOGGER.log(Level.INFO, "Loading player profiles..");

        HashMap<String, Profile> profiles = new HashMap<String, Profile>();
        File[] proFiles = new File("profiles").listFiles();
        
        for (File file : proFiles) {
            try {
            	if (!file.getCanonicalPath().endsWith(".json")) { continue; }
                Profile profile = new Profile((JSONObject) new JSONParser().parse(new FileReader(file)));
    			LOGGER.log(Level.INFO, "Loaded player '" + profile.getUsername() + "'");
                profiles.put(profile.getUsername(), profile);
            } catch (IOException ex) {
                LOGGER.log(Level.SEVERE, null, ex);
            } catch (org.json.simple.parser.ParseException e) { e.printStackTrace(); }
        }
        
		LOGGER.log(Level.INFO, "Finished loading profiles");
        return profiles;
    }