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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user