Add option for setting default max vaults of a faction.
This commit is contained in:
parent
f8ee2a5506
commit
74b4bd33e9
2
pom.xml
2
pom.xml
@ -313,7 +313,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.drtshock</groupId>
|
<groupId>com.drtshock</groupId>
|
||||||
<artifactId>PlayerVaults</artifactId>
|
<artifactId>PlayerVaults</artifactId>
|
||||||
<version>3.6.0-SNAPSHOT</version>
|
<version>3.5.9-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@ -358,6 +358,7 @@ public class Conf {
|
|||||||
|
|
||||||
// faction-<factionId>
|
// faction-<factionId>
|
||||||
public static String vaultPrefix = "faction-%s";
|
public static String vaultPrefix = "faction-%s";
|
||||||
|
public static int defaultMaxVaults = 0;
|
||||||
|
|
||||||
public static Backend backEnd = Backend.JSON;
|
public static Backend backEnd = Backend.JSON;
|
||||||
|
|
||||||
|
@ -322,6 +322,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
|||||||
this.money = 0.0;
|
this.money = 0.0;
|
||||||
this.powerBoost = 0.0;
|
this.powerBoost = 0.0;
|
||||||
this.foundedDate = System.currentTimeMillis();
|
this.foundedDate = System.currentTimeMillis();
|
||||||
|
this.maxVaults = Conf.defaultMaxVaults;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MemoryFaction(MemoryFaction old) {
|
public MemoryFaction(MemoryFaction old) {
|
||||||
|
Loading…
Reference in New Issue
Block a user