New conf.json settings "showNeutralFactionsOnMap" and "showEnemyFactionsOnMap" (both default to true) which, if disabled, will hide neutral and enemy factions on the faction map. However, if a player is standing inside territory claimed by a neutral or enemy faction, all of that faction's nearby claims will be shown on the faction map regardless.

This commit is contained in:
Brettflan
2011-08-01 19:59:48 -05:00
parent ad2bb5f4d0
commit f38651ca94
3 changed files with 24 additions and 3 deletions

View File

@ -40,6 +40,14 @@ public enum Relation {
return this == Relation.ENEMY;
}
public boolean isAtLeast(Relation relation) {
return this.value >= relation.value;
}
public boolean isAtMost(Relation relation) {
return this.value <= relation.value;
}
public ChatColor getColor() {
if (this == Relation.MEMBER) {
return Conf.colorMember;
@ -47,7 +55,7 @@ public enum Relation {
return Conf.colorAlly;
} else if (this == Relation.NEUTRAL) {
return Conf.colorNeutral;
} else { //if (relation == FactionRelation.ENEMY) {
} else {
return Conf.colorEnemy;
}
}