summaryrefslogtreecommitdiffstats
path: root/EssentialsChat
diff options
context:
space:
mode:
authorementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-01 10:15:49 +0000
committerementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-01 10:15:49 +0000
commitf3468d6d5b4ef380bf54cd9a8bef1a2d331a0506 (patch)
tree29a6b8cd2980c7124f2f5efbcbac51f2559d54cd /EssentialsChat
parent66c6635486cacf8157bac9f5170e6edd5f1ee36f (diff)
downloadEssentials-f3468d6d5b4ef380bf54cd9a8bef1a2d331a0506.tar
Essentials-f3468d6d5b4ef380bf54cd9a8bef1a2d331a0506.tar.gz
Essentials-f3468d6d5b4ef380bf54cd9a8bef1a2d331a0506.tar.lz
Essentials-f3468d6d5b4ef380bf54cd9a8bef1a2d331a0506.tar.xz
Essentials-f3468d6d5b4ef380bf54cd9a8bef1a2d331a0506.zip
Temp fix for coloured suffixes
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1076 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsChat')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java
index 09a27f18f..945436eb7 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java
@@ -37,7 +37,8 @@ public class EssentialsChatWorker
{
String prefix = Permissions.Security.getGroupPrefix(user.getWorld().getName(), group).replace('&', '§').replace("{WORLDNAME}", user.getWorld().getName());
String suffix = Permissions.Security.getGroupSuffix(user.getWorld().getName(), group).replace('&', '§').replace("{WORLDNAME}", user.getWorld().getName());
- user.setDisplayName(prefix + user.getNick() + suffix + (suffix.endsWith("§f") ? "" : "§f"));
+
+ user.setDisplayName(prefix + user.getNick() + suffix + (suffix.substring(suffix.length() -2).equals("§") ? "" : "§f"));
}
catch (Throwable ex)
{