This constant could be useful to other plugins.

This commit is contained in:
Olof Larsson 2013-12-03 17:16:41 +01:00
parent 20659b6086
commit 05aaa8140d
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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
// -------------------------------------------- //