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:
@@ -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)
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user