9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-21 07:59:28 +00:00

Added DROPS.save() call

This commit is contained in:
Auxilor
2021-01-29 10:18:47 +00:00
parent 99a3e0ea61
commit e879d1ea0f
2 changed files with 14 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ public class IllusionerConfigs {
*/
@ConfigUpdater
public void updateConfigs() {
DROPS.save();
SOUNDS.update();
ATTACKS.update();
}

View File

@@ -3,6 +3,8 @@ package com.willfp.illusioner.config.configs;
import com.willfp.eco.util.config.StaticBaseConfig;
import com.willfp.illusioner.IllusionerPlugin;
import java.io.IOException;
public class Drops extends StaticBaseConfig {
/**
* Instantiate drops.yml.
@@ -10,4 +12,15 @@ public class Drops extends StaticBaseConfig {
public Drops() {
super("drops", IllusionerPlugin.getInstance());
}
/**
* Save config to drops.yml.
*/
public void save() {
try {
this.getConfig().save(this.getConfigFile());
} catch (IOException e) {
e.printStackTrace();
}
}
}