diff options
author | ementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-01 10:15:49 +0000 |
---|---|---|
committer | ementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-01 10:15:49 +0000 |
commit | b514353f39542025df8d800381c8b1e0f4c14fe2 (patch) | |
tree | 90a71b3e62eff2828874133ff9f84cdd3357b649 /EssentialsChat/src | |
parent | 6207c76d3caf3408373f7d4443c3770589a2e109 (diff) | |
download | Essentials-b514353f39542025df8d800381c8b1e0f4c14fe2.tar Essentials-b514353f39542025df8d800381c8b1e0f4c14fe2.tar.gz Essentials-b514353f39542025df8d800381c8b1e0f4c14fe2.tar.lz Essentials-b514353f39542025df8d800381c8b1e0f4c14fe2.tar.xz Essentials-b514353f39542025df8d800381c8b1e0f4c14fe2.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/src')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java | 3 |
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) { |