Try moving some core configuration over to UConf.

This commit is contained in:
Olof Larsson
2013-04-22 16:58:22 +02:00
parent 6d2db1930c
commit 9a324d572e
12 changed files with 65 additions and 73 deletions

View File

@ -3,6 +3,8 @@ package com.massivecraft.factions;
import java.util.LinkedHashMap;
import java.util.Map;
import com.massivecraft.factions.entity.UConf;
/**
* Flags that describe the nature of a faction and it's territory.
@ -64,9 +66,9 @@ public enum FFlag
// DEFAULTS
// -------------------------------------------- //
public boolean getDefault()
public boolean getDefault(Object o)
{
Boolean ret = ConfServer.factionFlagDefaults.get(this);
Boolean ret = UConf.get(o).factionFlagDefaults.get(this);
if (ret == null) return this.getDefaultDefault();
return ret;
}