public static YamlConfiguration toFile() {
        YamlConfiguration yaml = new YamlConfiguration();
        for (Msg msg : values()) {
        	// MISC_NO_PERMISSION will become misc-no-permission
            String key = msg.name().replace("_","-").toLowerCase();
            yaml.set(key, msg.value);
        }
        return yaml;
    }