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> <dependency>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId> <artifactId>bukkit</artifactId>
<version>LATEST</version> <version>1.7.5-R0.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId> <artifactId>craftbukkit</artifactId>
<version>LATEST</version> <version>1.7.5-R0.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.daboross.vault</groupId> <groupId>net.daboross.vault</groupId>

View File

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