Add option for setting default max vaults of a faction.

This commit is contained in:
Trent Hensler 2016-05-30 17:21:11 -07:00
parent f8ee2a5506
commit 74b4bd33e9
3 changed files with 3 additions and 1 deletions

View File

@ -313,7 +313,7 @@
<dependency>
<groupId>com.drtshock</groupId>
<artifactId>PlayerVaults</artifactId>
<version>3.6.0-SNAPSHOT</version>
<version>3.5.9-SNAPSHOT</version>
</dependency>
</dependencies>

View File

@ -358,6 +358,7 @@ public class Conf {
// faction-<factionId>
public static String vaultPrefix = "faction-%s";
public static int defaultMaxVaults = 0;
public static Backend backEnd = Backend.JSON;

View File

@ -322,6 +322,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
this.money = 0.0;
this.powerBoost = 0.0;
this.foundedDate = System.currentTimeMillis();
this.maxVaults = Conf.defaultMaxVaults;
}
public MemoryFaction(MemoryFaction old) {