mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-10-31 23:59:36 +01:00
Need different methods for mod files and regular files.
This commit is contained in:
parent
2042e0cdbd
commit
7f4e3fedb3
@ -29,7 +29,13 @@ public abstract class ConfigLoader {
|
|||||||
protected void loadFile() {
|
protected void loadFile() {
|
||||||
if (!configFile.exists()) {
|
if (!configFile.exists()) {
|
||||||
plugin.debug("Creating mcMMO " + fileName + " File...");
|
plugin.debug("Creating mcMMO " + fileName + " File...");
|
||||||
plugin.saveResource(configFile.getParentFile().getName() + File.separator + fileName, false);
|
|
||||||
|
try {
|
||||||
|
plugin.saveResource(fileName, false); // Normal files
|
||||||
|
}
|
||||||
|
catch (IllegalArgumentException ex) {
|
||||||
|
plugin.saveResource(configFile.getParentFile().getName() + File.separator + fileName, false); // Mod files
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
plugin.debug("Loading mcMMO " + fileName + " File...");
|
plugin.debug("Loading mcMMO " + fileName + " File...");
|
||||||
|
Loading…
Reference in New Issue
Block a user