1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 17:45:08 +02:00

New Permission: essentials.chat.url

Without this perm, URLs will be modified not to be links.
This commit is contained in:
KHobbits
2012-03-22 22:15:18 +00:00
parent 0dc1270aed
commit d20519ef8b
5 changed files with 30 additions and 12 deletions

View File

@@ -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)
}));
}
}