Organized config file definitions.

This commit is contained in:
MobiusDev
2017-08-29 00:35:53 +00:00
parent aec0c9dddb
commit 729c08c372
24 changed files with 160 additions and 160 deletions

View File

@@ -116,7 +116,7 @@ public final class FortSiegeManager
private final void load()
{
final Properties siegeSettings = new Properties();
final File file = new File(Config.FORTSIEGE_CONFIGURATION_FILE);
final File file = new File(Config.FORTSIEGE_CONFIG_FILE);
try (InputStream is = new FileInputStream(file))
{
siegeSettings.load(is);

View File

@@ -118,7 +118,7 @@ public final class SiegeManager
private final void load()
{
final PropertiesParser siegeSettings = new PropertiesParser(Config.SIEGE_CONFIGURATION_FILE);
final PropertiesParser siegeSettings = new PropertiesParser(Config.SIEGE_CONFIG_FILE);
// Siege setting
_attackerMaxClans = siegeSettings.getInt("AttackerMaxClans", 500);

View File

@@ -787,7 +787,7 @@ public final class TerritoryWarManager implements Siegable
private final void load()
{
final PropertiesParser territoryWarSettings = new PropertiesParser(Config.TW_CONFIGURATION_FILE);
final PropertiesParser territoryWarSettings = new PropertiesParser(Config.TW_CONFIG_FILE);
// Siege setting
DEFENDERMAXCLANS = territoryWarSettings.getInt("DefenderMaxClans", 500);