diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-03-22 22:07:13 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-03-22 22:07:13 +0000 |
commit | 0dc1270aedb932d19d5c1c2e313c4f2fb099bbc0 (patch) | |
tree | 8be8ee7a650f6c8eb89f819bdc92070ea27a4d96 /EssentialsChat/src/com/earth2me/essentials | |
parent | cd0d37f73c5d8f2e9990d96ff95eb04ab4322bd5 (diff) | |
download | Essentials-0dc1270aedb932d19d5c1c2e313c4f2fb099bbc0.tar Essentials-0dc1270aedb932d19d5c1c2e313c4f2fb099bbc0.tar.gz Essentials-0dc1270aedb932d19d5c1c2e313c4f2fb099bbc0.tar.lz Essentials-0dc1270aedb932d19d5c1c2e313c4f2fb099bbc0.tar.xz Essentials-0dc1270aedb932d19d5c1c2e313c4f2fb099bbc0.zip |
Split colour permissions into 3: color/magic/format
Diffstat (limited to 'EssentialsChat/src/com/earth2me/essentials')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java index 5a8cde62d..2c0906cbf 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java @@ -37,14 +37,7 @@ public class EssentialsChatPlayerListenerLowest extends EssentialsChatPlayer /** * This listener should apply the general chat formatting only...then return control back the event handler */ - if (user.isAuthorized("essentials.chat.color")) - { - event.setMessage(Util.replaceColor(event.getMessage())); - } - else - { - event.setMessage(Util.stripColor(event.getMessage())); - } + event.setMessage(Util.formatString(user, "essentials.chat", event.getMessage())); String group = user.getGroup(); String world = user.getWorld().getName(); event.setFormat(ess.getSettings().getChatFormat(group).format(new Object[] {group, world, world.substring(0, 1).toUpperCase(Locale.ENGLISH)})); |