use of org.spongepowered.api.config.ConfigManager in project Skree by Skelril.
the class Decorators method getBaseWorkingDir.
private static Path getBaseWorkingDir() {
ConfigManager service = Sponge.getGame().getConfigManager();
Path path = service.getPluginConfig(SkreePlugin.inst()).getDirectory();
try {
return Files.createDirectories(path.resolve("zones"));
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
use of org.spongepowered.api.config.ConfigManager in project Skree by Skelril.
the class ConfigLoader method getFile.
private static Path getFile(String configName) throws IOException {
ConfigManager service = Sponge.getGame().getConfigManager();
Path path = service.getPluginConfig(SkreePlugin.inst()).getDirectory();
return path.resolve(configName);
}
Aggregations