summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java')
-rw-r--r--EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java b/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java
index f3ce3abaf..9bf791372 100644
--- a/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java
+++ b/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java
@@ -12,6 +12,7 @@ import net.ess3.utils.Util;
import java.util.Locale;
import java.util.Map;
import java.util.logging.Logger;
+import net.ess3.utils.FormatUtil;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@@ -80,10 +81,10 @@ public abstract class EssentialsChatPlayer implements Listener
final IUser user = chatStore.getUser();
if (Permissions.CHAT_COLOR.isAuthorized(user))
{
- event.setMessage(Util.stripColor(event.getMessage()));
+ event.setMessage(FormatUtil.stripColor(event.getMessage()));
}
String group = ess.getRanks().getMainGroup(user);
- String world = user.getWorld().getName();
+ String world = user.getPlayer().getWorld().getName();
IRanks groupSettings = ess.getRanks();
event.setFormat(groupSettings.getChatFormat(user).format(new Object[]