Rename Faction Tag to Faction Name. What did tag ever mean? Name makes more sense.
This commit is contained in:
@@ -4,15 +4,15 @@ import com.massivecraft.factions.chat.ChatTagAbstract;
|
||||
import com.massivecraft.factions.entity.Faction;
|
||||
import com.massivecraft.factions.entity.UPlayer;
|
||||
|
||||
public class ChatTagTag extends ChatTagAbstract
|
||||
public class ChatTagName extends ChatTagAbstract
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
// INSTANCE & CONSTRUCT
|
||||
// -------------------------------------------- //
|
||||
|
||||
private ChatTagTag() { super("factions_tag"); }
|
||||
private static ChatTagTag i = new ChatTagTag();
|
||||
public static ChatTagTag get() { return i; }
|
||||
private ChatTagName() { super("factions_name"); }
|
||||
private static ChatTagName i = new ChatTagName();
|
||||
public static ChatTagName get() { return i; }
|
||||
|
||||
// -------------------------------------------- //
|
||||
// OVERRIDE
|
||||
@@ -23,7 +23,7 @@ public class ChatTagTag extends ChatTagAbstract
|
||||
{
|
||||
Faction faction = fsender.getFaction();
|
||||
if (faction.isNone()) return "";
|
||||
return faction.getTag();
|
||||
return faction.getName();
|
||||
}
|
||||
|
||||
}
|
@@ -3,15 +3,15 @@ package com.massivecraft.factions.chat.tag;
|
||||
import com.massivecraft.factions.chat.ChatTagAbstract;
|
||||
import com.massivecraft.factions.entity.UPlayer;
|
||||
|
||||
public class ChatTagTagforce extends ChatTagAbstract
|
||||
public class ChatTagNameforce extends ChatTagAbstract
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
// INSTANCE & CONSTRUCT
|
||||
// -------------------------------------------- //
|
||||
|
||||
private ChatTagTagforce() { super("factions_tagforce"); }
|
||||
private static ChatTagTagforce i = new ChatTagTagforce();
|
||||
public static ChatTagTagforce get() { return i; }
|
||||
private ChatTagNameforce() { super("factions_nameforce"); }
|
||||
private static ChatTagNameforce i = new ChatTagNameforce();
|
||||
public static ChatTagNameforce get() { return i; }
|
||||
|
||||
// -------------------------------------------- //
|
||||
// OVERRIDE
|
||||
@@ -20,7 +20,7 @@ public class ChatTagTagforce extends ChatTagAbstract
|
||||
@Override
|
||||
public String getReplacement(UPlayer fsender, UPlayer frecipient)
|
||||
{
|
||||
return fsender.getFaction().getTag();
|
||||
return fsender.getFaction().getName();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user