|
@@ -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() {
|
|
|
|
- return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_DEFAULTS);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public static File getDefaultsConfigFolder() {
|
|
|
|
- return new File(getDefaultsFolder().getAbsolutePath(), FOLDER_NAME_CONFIG);
|
|
|
|
- }
|
|
|
|
|
|
+// public static File getDefaultsFolder() {
|
|
|
|
+// return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_DEFAULTS);
|
|
|
|
+// }
|
|
|
|
|
|
- public static File getDefaultsSkillFolder() {
|
|
|
|
- return new File(getDefaultsConfigFolder().getAbsolutePath(), FOLDER_NAME_SKILLS);
|
|
|
|
- }
|
|
|
|
|
|
+// public static File getDefaultsConfigFolder() {
|
|
|
|
+// return new File(getDefaultsFolder().getAbsolutePath(), FOLDER_NAME_CONFIG);
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// public static File getDefaultsSkillFolder() {
|
|
|
|
+// return new File(getDefaultsConfigFolder().getAbsolutePath(), FOLDER_NAME_SKILLS);
|
|
|
|
+// }
|
|
|
|
|
|
- public static File getDefaultsXPFolder() {
|
|
|
|
- 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() {
|
|
|
|
- return new File(getConfigFolder().getAbsolutePath(), FOLDER_NAME_EXPERIENCE);
|
|
|
|
- }
|
|
|
|
|
|
+// public static File getConfigXPFolder() {
|
|
|
|
+// 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())
|
|
|
|
- getDefaultsFolder().mkdirs();
|
|
|
|
-
|
|
|
|
- if (!getDefaultsConfigFolder().exists())
|
|
|
|
- getDefaultsConfigFolder().mkdirs();
|
|
|
|
-
|
|
|
|
- if (!getDefaultsSkillFolder().exists())
|
|
|
|
- getDefaultsSkillFolder().mkdirs();
|
|
|
|
|
|
+// if (!getDefaultsFolder().exists())
|
|
|
|
+// getDefaultsFolder().mkdirs();
|
|
|
|
+//
|
|
|
|
+// if (!getDefaultsConfigFolder().exists())
|
|
|
|
+// getDefaultsConfigFolder().mkdirs();
|
|
|
|
+//
|
|
|
|
+// if (!getDefaultsSkillFolder().exists())
|
|
|
|
+// getDefaultsSkillFolder().mkdirs();
|
|
|
|
|
|
- if (!getDefaultsXPFolder().exists())
|
|
|
|
- getDefaultsXPFolder().mkdirs();
|
|
|
|
|
|
+// if (!getDefaultsXPFolder().exists())
|
|
|
|
+// getDefaultsXPFolder().mkdirs();
|
|
|
|
|
|
/* CONFIG SUBDIRECTORIES */
|
|
/* CONFIG SUBDIRECTORIES */
|
|
|
|
|
|
if (!getConfigSkillFolder().exists())
|
|
if (!getConfigSkillFolder().exists())
|
|
getConfigSkillFolder().mkdirs();
|
|
getConfigSkillFolder().mkdirs();
|
|
|
|
|
|
- if (!getConfigXPFolder().exists())
|
|
|
|
- getConfigXPFolder().mkdirs();
|
|
|
|
|
|
+// if (!getConfigXPFolder().exists())
|
|
|
|
+// getConfigXPFolder().mkdirs();
|
|
}
|
|
}
|
|
}
|
|
}
|