From 05aaa8140d7e41762164fa814d839904476c3c63 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 3 Dec 2013 17:16:41 +0100 Subject: [PATCH] This constant could be useful to other plugins. --- .../massivecraft/factions/ExtractorFactionAccountId.java | 2 +- src/com/massivecraft/factions/Factions.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/ExtractorFactionAccountId.java b/src/com/massivecraft/factions/ExtractorFactionAccountId.java index d6727d67..547962e9 100644 --- a/src/com/massivecraft/factions/ExtractorFactionAccountId.java +++ b/src/com/massivecraft/factions/ExtractorFactionAccountId.java @@ -23,7 +23,7 @@ public class ExtractorFactionAccountId implements Extractor { String factionId = ((Faction)o).getId(); if (factionId == null) return null; - return "faction-"+factionId; + return Factions.FACTION_MONEY_ACCOUNT_ID_PREFIX + factionId; } return null; diff --git a/src/com/massivecraft/factions/Factions.java b/src/com/massivecraft/factions/Factions.java index b9aabc45..7941291a 100644 --- a/src/com/massivecraft/factions/Factions.java +++ b/src/com/massivecraft/factions/Factions.java @@ -52,6 +52,12 @@ import com.massivecraft.mcore.xlib.gson.GsonBuilder; public class Factions extends MPlugin { + // -------------------------------------------- // + // CONSTANTS + // -------------------------------------------- // + + public final static String FACTION_MONEY_ACCOUNT_ID_PREFIX = "faction-"; + // -------------------------------------------- // // INSTANCE & CONSTRUCT // -------------------------------------------- //