summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-03-04 15:43:00 +1100
committerKHobbits <rob@khobbits.co.uk>2012-03-05 08:37:13 +0000
commitb512a243e71034dc56ecdc37281d18e39b21109f (patch)
tree049c79a3d749ef8e14600c84dcf6a6a36c03b7d6
parent873c9880dd361e1edae6e0ecca745e1592cafc67 (diff)
downloadEssentials-b512a243e71034dc56ecdc37281d18e39b21109f.tar
Essentials-b512a243e71034dc56ecdc37281d18e39b21109f.tar.gz
Essentials-b512a243e71034dc56ecdc37281d18e39b21109f.tar.lz
Essentials-b512a243e71034dc56ecdc37281d18e39b21109f.tar.xz
Essentials-b512a243e71034dc56ecdc37281d18e39b21109f.zip
Fix op colours, which KHobbits broke!
-rw-r--r--Essentials/src/com/earth2me/essentials/User.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java
index 125962da9..f89f1a5ad 100644
--- a/Essentials/src/com/earth2me/essentials/User.java
+++ b/Essentials/src/com/earth2me/essentials/User.java
@@ -262,19 +262,19 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
nickname.append(ess.getSettings().getNicknamePrefix()).append(nick);
}
- if (addprefixsuffix && ess.getSettings().addPrefixSuffix())
+ if (isOp())
{
- if (isOp())
+ try
{
- try
- {
- nickname.insert(0, ess.getSettings().getOperatorColor().toString());
- }
- catch (Exception e)
- {
- }
+ nickname.insert(0, ess.getSettings().getOperatorColor().toString());
+ nickname.append("§f");
}
-
+ catch (Exception e)
+ {
+ }
+ }
+ if (addprefixsuffix && ess.getSettings().addPrefixSuffix())
+ {
if (!ess.getSettings().disablePrefix())
{
final String prefix = ess.getPermissionsHandler().getPrefix(base).replace('&', '§');