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:
@@ -28,6 +28,7 @@ public class IllusionerConfigs {
|
||||
*/
|
||||
@ConfigUpdater
|
||||
public void updateConfigs() {
|
||||
DROPS.save();
|
||||
SOUNDS.update();
|
||||
ATTACKS.update();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user