Don't apply chat tags twice.

This commit is contained in:
drtshock 2014-08-02 16:32:25 -05:00
parent 5938a4987e
commit 957f8a209d
2 changed files with 4 additions and 2 deletions

View File

@ -42,12 +42,12 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>LATEST</version>
<version>1.7.5-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>LATEST</version>
<version>1.7.5-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>net.daboross.vault</groupId>

View File

@ -42,10 +42,12 @@ public class MPluginSecretPlayerListener implements Listener {
event.setCancelled(true);
}
/* Should be handled by stuff in FactionsChatListener
Player speaker = event.getPlayer();
String format = event.getFormat();
format = format.replace(Conf.chatTagReplaceString, P.p.getPlayerFactionTag(speaker)).replace("[FACTION_TITLE]", P.p.getPlayerTitle(speaker));
event.setFormat(format);
*/
}
@EventHandler(priority = EventPriority.LOWEST)