mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 16:19:53 +01:00
Don't make unecessary folders
This commit is contained in:
parent
d3a719eb8d
commit
aeb518f38c
@ -15,12 +15,12 @@ public class ConfigConstants {
|
|||||||
/* FOLDER NAMES */
|
/* FOLDER NAMES */
|
||||||
public static final String FOLDER_NAME_CONFIG = "config";
|
public static final String FOLDER_NAME_CONFIG = "config";
|
||||||
public static final String FOLDER_NAME_SKILLS = "skills";
|
public static final String FOLDER_NAME_SKILLS = "skills";
|
||||||
public static final String FOLDER_NAME_EXPERIENCE = "Experience Settings";
|
// public static final String FOLDER_NAME_EXPERIENCE = "Experience Settings";
|
||||||
public static final String FOLDER_NAME_DEFAULTS = "defaults";
|
public static final String FOLDER_NAME_DEFAULTS = "defaults";
|
||||||
/* RELATIVE PATHS */
|
/* RELATIVE PATHS */
|
||||||
public final static String RELATIVE_PATH_CONFIG_DIR = File.separator + FOLDER_NAME_CONFIG + File.separator;
|
public final static String RELATIVE_PATH_CONFIG_DIR = File.separator + FOLDER_NAME_CONFIG + File.separator;
|
||||||
public final static String RELATIVE_PATH_SKILLS_DIR = RELATIVE_PATH_CONFIG_DIR + FOLDER_NAME_SKILLS + File.separator;
|
public final static String RELATIVE_PATH_SKILLS_DIR = RELATIVE_PATH_CONFIG_DIR + FOLDER_NAME_SKILLS + File.separator;
|
||||||
public final static String RELATIVE_PATH_XP_DIR = RELATIVE_PATH_CONFIG_DIR + FOLDER_NAME_EXPERIENCE + File.separator;
|
// public final static String RELATIVE_PATH_XP_DIR = RELATIVE_PATH_CONFIG_DIR + FOLDER_NAME_EXPERIENCE + File.separator;
|
||||||
private final static String[] EXAMPLE_BLACKLIST_WORLDS = {"Example_15434453", "Example_2324423", "Example_323423465"};
|
private final static String[] EXAMPLE_BLACKLIST_WORLDS = {"Example_15434453", "Example_2324423", "Example_323423465"};
|
||||||
|
|
||||||
//Add the worlds to the list
|
//Add the worlds to the list
|
||||||
@ -44,29 +44,29 @@ public class ConfigConstants {
|
|||||||
return new File(getDataFolder(), FOLDER_NAME_CONFIG);
|
return new File(getDataFolder(), FOLDER_NAME_CONFIG);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static File getDefaultsFolder() {
|
// public static File getDefaultsFolder() {
|
||||||
return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_DEFAULTS);
|
// return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_DEFAULTS);
|
||||||
}
|
// }
|
||||||
|
|
||||||
public static File getDefaultsConfigFolder() {
|
// public static File getDefaultsConfigFolder() {
|
||||||
return new File(getDefaultsFolder().getAbsolutePath(), FOLDER_NAME_CONFIG);
|
// return new File(getDefaultsFolder().getAbsolutePath(), FOLDER_NAME_CONFIG);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
|
// public static File getDefaultsSkillFolder() {
|
||||||
|
// return new File(getDefaultsConfigFolder().getAbsolutePath(), FOLDER_NAME_SKILLS);
|
||||||
|
// }
|
||||||
|
|
||||||
public static File getDefaultsSkillFolder() {
|
// public static File getDefaultsXPFolder() {
|
||||||
return new File(getDefaultsConfigFolder().getAbsolutePath(), FOLDER_NAME_SKILLS);
|
// return new File(getDefaultsConfigFolder().getAbsolutePath(), FOLDER_NAME_EXPERIENCE);
|
||||||
}
|
// }
|
||||||
|
|
||||||
public static File getDefaultsXPFolder() {
|
|
||||||
return new File(getDefaultsConfigFolder().getAbsolutePath(), FOLDER_NAME_EXPERIENCE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static File getConfigSkillFolder() {
|
public static File getConfigSkillFolder() {
|
||||||
return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_SKILLS);
|
return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_SKILLS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static File getConfigXPFolder() {
|
// public static File getConfigXPFolder() {
|
||||||
return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_EXPERIENCE);
|
// return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_EXPERIENCE);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates all directories used by mcMMO config files
|
* Creates all directories used by mcMMO config files
|
||||||
@ -79,24 +79,24 @@ public class ConfigConstants {
|
|||||||
|
|
||||||
/* DEFAULT DIRECTORIES */
|
/* DEFAULT DIRECTORIES */
|
||||||
|
|
||||||
if (!getDefaultsFolder().exists())
|
// if (!getDefaultsFolder().exists())
|
||||||
getDefaultsFolder().mkdirs();
|
// getDefaultsFolder().mkdirs();
|
||||||
|
//
|
||||||
|
// if (!getDefaultsConfigFolder().exists())
|
||||||
|
// getDefaultsConfigFolder().mkdirs();
|
||||||
|
//
|
||||||
|
// if (!getDefaultsSkillFolder().exists())
|
||||||
|
// getDefaultsSkillFolder().mkdirs();
|
||||||
|
|
||||||
if (!getDefaultsConfigFolder().exists())
|
// if (!getDefaultsXPFolder().exists())
|
||||||
getDefaultsConfigFolder().mkdirs();
|
// getDefaultsXPFolder().mkdirs();
|
||||||
|
|
||||||
if (!getDefaultsSkillFolder().exists())
|
|
||||||
getDefaultsSkillFolder().mkdirs();
|
|
||||||
|
|
||||||
if (!getDefaultsXPFolder().exists())
|
|
||||||
getDefaultsXPFolder().mkdirs();
|
|
||||||
|
|
||||||
/* CONFIG SUBDIRECTORIES */
|
/* CONFIG SUBDIRECTORIES */
|
||||||
|
|
||||||
if (!getConfigSkillFolder().exists())
|
if (!getConfigSkillFolder().exists())
|
||||||
getConfigSkillFolder().mkdirs();
|
getConfigSkillFolder().mkdirs();
|
||||||
|
|
||||||
if (!getConfigXPFolder().exists())
|
// if (!getConfigXPFolder().exists())
|
||||||
getConfigXPFolder().mkdirs();
|
// getConfigXPFolder().mkdirs();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user