We don't need file extentions when using AbstractConfiguration
This commit is contained in:
parent
37faacdc6b
commit
0531e9a3d7
|
|
@ -9,7 +9,7 @@ import java.io.File;
|
|||
@SuppressWarnings("unused")
|
||||
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.yml");
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + 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.yml");
|
||||
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + AFKDetector.getInstance().getName()), "messages");
|
||||
}
|
||||
|
||||
static MessagesConfig config;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user