Add static config path to Config.java
This commit is contained in:
parent
eb8ee00e4a
commit
0b269b46e4
|
|
@ -10,8 +10,9 @@ import java.util.HashMap;
|
|||
@SuppressWarnings("unused")
|
||||
public class Config extends AbstractConfiguration {
|
||||
|
||||
public static File configPath = new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "com/alttd/playershops");
|
||||
private Config() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "com/alttd/playershops"), "config");
|
||||
super(Config.configPath, "config");
|
||||
}
|
||||
|
||||
static Config config;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import java.util.HashMap;
|
|||
public class DatabaseConfig extends AbstractConfiguration {
|
||||
|
||||
private DatabaseConfig() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "com/alttd/playershops"), "database");
|
||||
super(Config.configPath, "database");
|
||||
}
|
||||
|
||||
static DatabaseConfig config;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import java.util.HashMap;
|
|||
public class MessageConfig extends AbstractConfiguration {
|
||||
|
||||
public MessageConfig() {
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "com/alttd/playershops"), "messageconfig");
|
||||
super(Config.configPath, "messageconfig");
|
||||
}
|
||||
|
||||
static MessageConfig config;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user