Change configuration file path
Updated the path of the configuration files in both MessagesConfig and Config classes. Instead of referencing the user's home directory, it now points to a dedicated directory under '/mnt/configs'.
This commit is contained in:
parent
66276fbf47
commit
2877ffd603
|
|
@ -10,7 +10,7 @@ import java.io.File;
|
|||
public class Config extends AbstractConfiguration {
|
||||
|
||||
private Config() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + AFKDetector.getInstance().getName()), "config");
|
||||
super(new File(File.separator + "mnt" + File.separator + "configs" + File.separator + AFKDetector.getInstance().getName()), "config");
|
||||
}
|
||||
|
||||
static Config config;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import java.io.File;
|
|||
@SuppressWarnings("unused")
|
||||
public class MessagesConfig extends AbstractConfiguration {
|
||||
private MessagesConfig() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + AFKDetector.getInstance().getName()), "messages");
|
||||
super(new File(File.separator + "mnt" + File.separator + "configs" + File.separator + AFKDetector.getInstance().getName()), "messages");
|
||||
}
|
||||
|
||||
static MessagesConfig config;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user