redis added to the config handler
parent
93f1179b38
commit
7d85f98384
|
@ -25,6 +25,9 @@ public class ConfigHandler {
|
|||
private String mongodbUsername;
|
||||
private String mongodbPassword;
|
||||
|
||||
private String redisHost;
|
||||
private String redisPort;
|
||||
|
||||
public void load() throws IOException {
|
||||
Configuration configuration = ConfigurationProvider.getProvider(YamlConfiguration.class)
|
||||
.load(new File("/home/kra-minecraft/kraConfigs", "kraSettings.yaml"));
|
||||
|
@ -42,5 +45,8 @@ public class ConfigHandler {
|
|||
mongodbDatabase = configuration.getString("mongodb.database");
|
||||
mongodbUsername = configuration.getString("mongodb.username");
|
||||
mongodbPassword = configuration.getString("mongodb.password");
|
||||
|
||||
redisHost = configuration.getString("redis.host");
|
||||
redisPort = configuration.getString("redis.port");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue