mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
Pull-Request #1 by mrapple
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1588 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
f1b544a96f
commit
c038751c0b
@ -62,7 +62,7 @@ public class EssentialsChatWorker
|
||||
if (user.isAuthorized("essentials.chat.color"))
|
||||
event.setMessage(event.getMessage().replaceAll("&([0-9a-f])", "§$1"));
|
||||
|
||||
event.setFormat(Essentials.getStatic().getSettings().getChatFormat(user.getGroup()).replace('&', '§').replace("§§", "&").replace("{DISPLAYNAME}", "%1$s").replace("{GROUP}", user.getGroup()).replace("{MESSAGE}", "%2$s").replace("{WORLDNAME}", user.getWorld().getName()));
|
||||
event.setFormat(Essentials.getStatic().getSettings().getChatFormat(user.getGroup()).replace('&', '§').replace("§§", "&").replace("{DISPLAYNAME}", "%1$s").replace("{GROUP}", user.getGroup()).replace("{MESSAGE}", "%2$s").replace("{WORLDNAME}", user.getWorld().getName()).replace("{SHORTWORLDNAME}", user.getWorld().getName().substring(0, 1).toUpperCase()));
|
||||
|
||||
int radius = Essentials.getStatic().getSettings().getChatRadius();
|
||||
if (radius < 1) return;
|
||||
|
Loading…
Reference in New Issue
Block a user