summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-03-22 22:15:18 +0000
committerKHobbits <rob@khobbits.co.uk>2012-03-22 22:19:58 +0000
commitd20519ef8bf4141cb99ffc7dd2f43783e2c23253 (patch)
tree49c0cf641e362e70933eac27a6b359d63b632ba1 /EssentialsChat/src
parent0dc1270aedb932d19d5c1c2e313c4f2fb099bbc0 (diff)
downloadEssentials-d20519ef8bf4141cb99ffc7dd2f43783e2c23253.tar
Essentials-d20519ef8bf4141cb99ffc7dd2f43783e2c23253.tar.gz
Essentials-d20519ef8bf4141cb99ffc7dd2f43783e2c23253.tar.lz
Essentials-d20519ef8bf4141cb99ffc7dd2f43783e2c23253.tar.xz
Essentials-d20519ef8bf4141cb99ffc7dd2f43783e2c23253.zip
New Permission: essentials.chat.url
Without this perm, URLs will be modified not to be links.
Diffstat (limited to 'EssentialsChat/src')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java
index 2c0906cbf..599c39dda 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java
@@ -37,9 +37,12 @@ public class EssentialsChatPlayerListenerLowest extends EssentialsChatPlayer
/**
* This listener should apply the general chat formatting only...then return control back the event handler
*/
- event.setMessage(Util.formatString(user, "essentials.chat", event.getMessage()));
+ event.setMessage(Util.formatMessage(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)}));
+ event.setFormat(ess.getSettings().getChatFormat(group).format(new Object[]
+ {
+ group, world, world.substring(0, 1).toUpperCase(Locale.ENGLISH)
+ }));
}
}