mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Save mod config files to "mods" rather than "ModConfigs", mirror directory structure inside the jar file.
This commit is contained in:
parent
3927427b5b
commit
5131e74349
@ -26,7 +26,7 @@ public class CustomArmorConfig extends ConfigLoader {
|
|||||||
private List<Material> customLeggings = new ArrayList<Material>();
|
private List<Material> customLeggings = new ArrayList<Material>();
|
||||||
|
|
||||||
public CustomArmorConfig() {
|
public CustomArmorConfig() {
|
||||||
super("ModConfigs", "armor.yml");
|
super("mods", "armor.yml");
|
||||||
loadKeys();
|
loadKeys();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ public class CustomBlockConfig extends ConfigLoader {
|
|||||||
private HashMap<MaterialData, CustomBlock> customBlockMap = new HashMap<MaterialData, CustomBlock>();
|
private HashMap<MaterialData, CustomBlock> customBlockMap = new HashMap<MaterialData, CustomBlock>();
|
||||||
|
|
||||||
public CustomBlockConfig() {
|
public CustomBlockConfig() {
|
||||||
super("ModConfigs", "blocks.yml");
|
super("mods", "blocks.yml");
|
||||||
loadKeys();
|
loadKeys();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ public class CustomEntityConfig extends ConfigLoader {
|
|||||||
private HashMap<String, CustomEntity> customEntityTypeMap = new HashMap<String, CustomEntity>();
|
private HashMap<String, CustomEntity> customEntityTypeMap = new HashMap<String, CustomEntity>();
|
||||||
|
|
||||||
public CustomEntityConfig() {
|
public CustomEntityConfig() {
|
||||||
super("ModConfigs", "entities.yml");
|
super("mods", "entities.yml");
|
||||||
loadKeys();
|
loadKeys();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ public class CustomToolConfig extends ConfigLoader {
|
|||||||
private HashMap<Material, CustomTool> customToolMap = new HashMap<Material, CustomTool>();
|
private HashMap<Material, CustomTool> customToolMap = new HashMap<Material, CustomTool>();
|
||||||
|
|
||||||
private CustomToolConfig() {
|
private CustomToolConfig() {
|
||||||
super("ModConfigs", "tools.yml");
|
super("mods", "tools.yml");
|
||||||
loadKeys();
|
loadKeys();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
mainDirectory = getDataFolder().getPath() + File.separator;
|
mainDirectory = getDataFolder().getPath() + File.separator;
|
||||||
flatFileDirectory = mainDirectory + "FlatFileStuff" + File.separator;
|
flatFileDirectory = mainDirectory + "FlatFileStuff" + File.separator;
|
||||||
usersFile = flatFileDirectory + "mcmmo.users";
|
usersFile = flatFileDirectory + "mcmmo.users";
|
||||||
modDirectory = mainDirectory + "ModConfigs" + File.separator;
|
modDirectory = mainDirectory + "mods" + File.separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkForUpdates() {
|
private void checkForUpdates() {
|
||||||
|
Loading…
Reference in New Issue
Block a user