mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Rewrite configuration system
This commit refactors almost all of the configuration section to make it more friendly for further development. In addition, files being saved without comments has been fixed. Emphasis has been put on retaining backwards compatibility, so most actual configuration options in flatfile have stayed the same. Minor changes are automatically upgraded.
This commit is contained in:
1 parent
1e42d58926
commit
77ab0062b8
37 files changed
+1535
-1488
No files matched your search
@@ -21,7 +21,7 @@ package net.h31ix.anticheat.util.enterprise;
|
||||
public class Database {
|
||||
|
||||
public enum DatabaseType {
|
||||
MYSQL,
|
||||
MySQL,
|
||||
}
|
||||
|
||||
private DatabaseType type;
|
||||
@@ -29,16 +29,44 @@ public class Database {
|
||||
private int port;
|
||||
private String username;
|
||||
private String password;
|
||||
private String schema;
|
||||
private String prefix;
|
||||
private String schema;
|
||||
|
||||
public Database(DatabaseType type, String hostname, int port, String username, String password, String schema, String prefix) {
|
||||
public Database(DatabaseType type, String hostname, int port, String username, String password, String prefix, String schema) {
|
||||
this.type = type;
|
||||
this.hostname = hostname;
|
||||
this.port = port;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.schema = schema;
|
||||
this.prefix = prefix;
|
||||
this.schema = schema;
|
||||
}
|
||||
|
||||
public DatabaseType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public String getHostname() {
|
||||
return hostname;
|
||||
}
|
||||
|
||||
public int getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public String getPrefix() {
|
||||
return prefix;
|
||||
}
|
||||
|
||||
public String getSchema() {
|
||||
return schema;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user