Minor tweaks to default config values

This commit is contained in:
Olof Larsson 2013-04-25 20:21:23 +02:00
parent 99f6087536
commit 684974b336
3 changed files with 26 additions and 6 deletions

View File

@ -916,11 +916,13 @@ public class Faction extends Entity<Faction> implements EconomyParticipator
} }
if (replacements == null || replacements.isEmpty()) if (replacements == null || replacements.isEmpty())
{ // faction leader is the only member; one-man faction {
// faction leader is the only member; one-man faction
if (this.getFlag(FFlag.PERMANENT)) if (this.getFlag(FFlag.PERMANENT))
{ {
if (oldLeader != null) if (oldLeader != null)
{ {
// TODO: Where is the logic in this? Why MEMBER? Why not LEADER again? And why not OFFICER or RECRUIT?
oldLeader.setRole(Rel.MEMBER); oldLeader.setRole(Rel.MEMBER);
} }
return; return;

View File

@ -98,7 +98,7 @@ public class UConf extends Entity<UConf>
// -------------------------------------------- // // -------------------------------------------- //
public int factionMemberLimit = 0; public int factionMemberLimit = 0;
public double factionPowerMax = 1000.0; public double factionPowerMax = 0.0;
public int factionNameLengthMin = 3; public int factionNameLengthMin = 3;
public int factionNameLengthMax = 16; public int factionNameLengthMax = 16;
@ -108,7 +108,7 @@ public class UConf extends Entity<UConf>
// CLAIMS // CLAIMS
// -------------------------------------------- // // -------------------------------------------- //
public boolean claimsMustBeConnected = false; public boolean claimsMustBeConnected = true;
public boolean claimingFromOthersAllowed = true; public boolean claimingFromOthersAllowed = true;
public boolean claimsCanBeUnconnectedIfOwnedByOtherFaction = true; public boolean claimsCanBeUnconnectedIfOwnedByOtherFaction = true;
public int claimsRequireMinFactionMembers = 1; public int claimsRequireMinFactionMembers = 1;
@ -145,7 +145,25 @@ public class UConf extends Entity<UConf>
// commands which will be prevented when in claimed territory of another faction // commands which will be prevented when in claimed territory of another faction
public Map<Rel, List<String>> denyCommandsTerritoryRelation = MUtil.map( public Map<Rel, List<String>> denyCommandsTerritoryRelation = MUtil.map(
Rel.ENEMY, MUtil.list("home", "sethome", "spawn", "tpahere", "tpaccept", "tpa", "warp"), Rel.ENEMY, MUtil.list(
"home",
"sethome",
"tpahere",
"tpaccept",
"tpa",
"warp",
"warps",
"spawn",
"wtp",
"uspawn",
"utp",
"mspawn",
"mtp",
"fspawn",
"ftp",
"jspawn",
"jtp"
),
Rel.NEUTRAL, new ArrayList<String>(), Rel.NEUTRAL, new ArrayList<String>(),
Rel.TRUCE, new ArrayList<String>(), Rel.TRUCE, new ArrayList<String>(),
Rel.ALLY, new ArrayList<String>(), Rel.ALLY, new ArrayList<String>(),
@ -181,7 +199,7 @@ public class UConf extends Entity<UConf>
FactionsEventChunkChangeType.PILLAGE, -10.0 FactionsEventChunkChangeType.PILLAGE, -10.0
); );
public double econCostCreate = 100.0; public double econCostCreate = 200.0;
public double econCostSethome = 0.0; public double econCostSethome = 0.0;
public double econCostJoin = 0.0; public double econCostJoin = 0.0;
public double econCostLeave = 0.0; public double econCostLeave = 0.0;

View File

@ -10,7 +10,7 @@ import com.massivecraft.factions.entity.MConf;
public class AlliesChannel extends FactionsChannelAbstract public class AlliesChannel extends FactionsChannelAbstract
{ {
public static final Set<Rel> targetRelations = EnumSet.of(Rel.MEMBER, Rel.ALLY); public static final Set<Rel> targetRelations = EnumSet.of(Rel.MEMBER, Rel.RECRUIT, Rel.ALLY);
@Override public Set<Rel> getTargetRelations() { return targetRelations; } @Override public Set<Rel> getTargetRelations() { return targetRelations; }
@Override public String getName() { return MConf.get().herochatAlliesName; } @Override public String getName() { return MConf.get().herochatAlliesName; }