C:/Program Files (x86)/Git/f show command now displays relations to other factions.

This commit is contained in:
Olof Larsson
2011-02-12 18:52:45 +01:00
parent 88ff88103e
commit 156e939d18
3 changed files with 55 additions and 20 deletions

View File

@@ -28,6 +28,7 @@ public class Conf {
public static int factionTagLengthMin = 3;
public static int factionTagLengthMax = 3;
public static boolean factionTagForceUpperCase = true;
// Configuration on the Faction tag in chat messages.
@@ -35,7 +36,7 @@ public class Conf {
public static boolean chatTagRelationColored = true;
public static int chatTagInsertIndex = 1;
public static String chatTagFormat = "%s"+ChatColor.WHITE+" ";
public static String factionChatFormat = colorMember+"%s"+ChatColor.WHITE+" %s";
public static String factionChatFormat = "%s"+ChatColor.WHITE+" %s";
public static int mapHeight = 8;
public static int mapWidth = 49;

View File

@@ -45,7 +45,10 @@ public class Faction {
return this.getTag(otherFollower.getRelationColor(this).toString());
}
public void setTag(String str) {
this.tag = str.toUpperCase();
if (Conf.factionTagForceUpperCase) {
str = str.toUpperCase();
}
this.tag = str;
this.save();
}