Organized config file definitions.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user