From 47bdb149abe779ff85ba8545317704756763a2b5 Mon Sep 17 00:00:00 2001 From: drtshock Date: Tue, 8 Sep 2015 12:42:05 -0500 Subject: [PATCH] Add factionless prefix. Fixes #438. --- .../com/massivecraft/factions/zcore/persist/MemoryFPlayer.java | 2 +- src/main/java/com/massivecraft/factions/zcore/util/TL.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java index ea490f76..f76d870d 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java @@ -325,7 +325,7 @@ public abstract class MemoryFPlayer implements FPlayer { // Base: public String getTitle() { - return this.hasFaction() ? title : ""; + return this.hasFaction() ? title : TL.NOFACTION_PREFIX.toString(); } public void setTitle(String title) { diff --git a/src/main/java/com/massivecraft/factions/zcore/util/TL.java b/src/main/java/com/massivecraft/factions/zcore/util/TL.java index 2061e644..bf4ae8da 100644 --- a/src/main/java/com/massivecraft/factions/zcore/util/TL.java +++ b/src/main/java/com/massivecraft/factions/zcore/util/TL.java @@ -708,6 +708,7 @@ public enum TL { DEFAULT_PREFIX("default-prefix", "{relationcolor}[{faction}] &r"), FACTION_LOGIN("faction-login", "&e%1$s &9logged in."), FACTION_LOGOUT("faction-logout", "&e%1$s &9logged out.."), + NOFACTION_PREFIX("nofactions-prefix", "&6[&a4-&6]&r"), DATE_FORMAT("date-format", "MM/d/yy h:ma"), // 3/31/15 07:49AM /**