public void loadConfig() {
		config = new YamlConfiguration();
		createConfig();
		
		File file = new File(getDataFolder(), "config.yml");
				
		try {
			config.load(file);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			Logger.warning("Could not load config, using default settings!");
		} catch (IOException e) {
			e.printStackTrace();
			Logger.warning("Could not load config, using default settings!");
		} catch (InvalidConfigurationException e) {
			e.printStackTrace();
			Logger.warning("Could not load config, using default settings!");
		}
		
		permissions = config.getBoolean("permissions", true);
		displayName = config.getBoolean("display-name", false);
		hideKick = config.getBoolean("silentkick", true);
		joinMessage = config.getString("join-message");
		quitMessage = config.getString("quit-message");
	}