Update file paths in quest configurations
The file paths previously pointed to the user home directory. This commit adjusts the paths to consistently use a mount point directory instead. The change affects the 'QuestsConfig', 'Config', 'MessagesConfig', and 'DatabaseConfig' classes.
This commit is contained in:
parent
81ed73fbd1
commit
ffd67eada8
|
|
@ -8,7 +8,7 @@ public final class Config extends AbstractConfig {
|
|||
static Config config;
|
||||
static int version;
|
||||
public Config() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "AltitudeQuests"), "config.yml");
|
||||
super(new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "AltitudeQuests"), "config.yml");
|
||||
}
|
||||
public static void reload() {
|
||||
config = new Config();
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ public class DatabaseConfig extends AbstractConfig {
|
|||
|
||||
static DatabaseConfig config;
|
||||
public DatabaseConfig() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs"
|
||||
super(new File(File.separator + "mnt" + File.separator + "configs"
|
||||
+ File.separator + "AltitudeQuests"), "database.yml");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ public class MessagesConfig extends AbstractConfig{
|
|||
static MessagesConfig config;
|
||||
|
||||
public MessagesConfig() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs"
|
||||
super(new File(File.separator + "mnt" + File.separator + "configs"
|
||||
+ File.separator + "AltitudeQuests"), "messages.yml");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public class QuestsConfig extends AbstractConfig {
|
|||
static QuestsConfig config;
|
||||
|
||||
public QuestsConfig() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs"
|
||||
super(new File(File.separator + "mnt" + File.separator + "configs"
|
||||
+ File.separator + "AltitudeQuests"), "quests.yml");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user