Working on the faction perms as well now
This commit is contained in:
@@ -6,6 +6,8 @@ import org.bukkit.*;
|
||||
import org.bukkit.entity.CreatureType;
|
||||
|
||||
import com.massivecraft.factions.struct.FactionFlag;
|
||||
import com.massivecraft.factions.struct.FactionPerm;
|
||||
import com.massivecraft.factions.struct.Rel;
|
||||
|
||||
public class Conf
|
||||
{
|
||||
@@ -27,6 +29,8 @@ public class Conf
|
||||
// REFACTOR ASJDKJASDKFJKASDF
|
||||
public static Map<FactionFlag, Boolean> factionFlagDefaults;
|
||||
public static Map<FactionFlag, Boolean> factionFlagIsChangeable;
|
||||
public static Map<FactionPerm, Set<Rel>> factionPermDefaults;
|
||||
|
||||
|
||||
// REFACTOR ASJDKJASDKFJKASDF EEEEEENNNNDD
|
||||
|
||||
@@ -285,6 +289,12 @@ public class Conf
|
||||
factionFlagIsChangeable.put(flag, flag.defaultDefaultChangeable);
|
||||
}
|
||||
|
||||
factionPermDefaults = new LinkedHashMap<FactionPerm, Set<Rel>>();
|
||||
for (FactionPerm perm: FactionPerm.values())
|
||||
{
|
||||
factionPermDefaults.put(perm, perm.defaultDefaultValue);
|
||||
}
|
||||
|
||||
territoryEnemyDenyCommands.add("home");
|
||||
territoryEnemyDenyCommands.add("sethome");
|
||||
territoryEnemyDenyCommands.add("spawn");
|
||||
|
||||
Reference in New Issue
Block a user