From 74b4bd33e9b068f985bbf8d70d6d4e263bf249a5 Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Mon, 30 May 2016 17:21:11 -0700 Subject: [PATCH] Add option for setting default max vaults of a faction. --- pom.xml | 2 +- src/main/java/com/massivecraft/factions/Conf.java | 1 + .../com/massivecraft/factions/zcore/persist/MemoryFaction.java | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 22618e78..1e7d55cd 100644 --- a/pom.xml +++ b/pom.xml @@ -313,7 +313,7 @@ com.drtshock PlayerVaults - 3.6.0-SNAPSHOT + 3.5.9-SNAPSHOT diff --git a/src/main/java/com/massivecraft/factions/Conf.java b/src/main/java/com/massivecraft/factions/Conf.java index 9e2a6c53..1592f007 100644 --- a/src/main/java/com/massivecraft/factions/Conf.java +++ b/src/main/java/com/massivecraft/factions/Conf.java @@ -358,6 +358,7 @@ public class Conf { // faction- public static String vaultPrefix = "faction-%s"; + public static int defaultMaxVaults = 0; public static Backend backEnd = Backend.JSON; diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java index 0f01ffec..37315f6f 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java @@ -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) {