mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 17:15:07 +02:00
Fix chat colours
This commit is contained in:
@@ -156,4 +156,5 @@ public enum Permissions implements IPermission
|
||||
public static DotStarPermission WORLD = new DotStarPermission("essentials.world");
|
||||
public static DotStarPermission NICK = new DotStarPermission("essentials.nick");
|
||||
public static DotStarPermission SIGNS = new DotStarPermission("essentials.signs");
|
||||
public static DotStarPermission CHAT = new DotStarPermission("essentials.chat");
|
||||
}
|
||||
|
@@ -78,10 +78,7 @@ public abstract class EssentialsChatPlayer implements Listener
|
||||
protected void formatChat(final AsyncPlayerChatEvent event, final ChatStore chatStore)
|
||||
{
|
||||
final IUser user = chatStore.getUser();
|
||||
if (Permissions.CHAT_COLOR.isAuthorized(user))
|
||||
{
|
||||
event.setMessage(FormatUtil.stripColor(event.getMessage()));
|
||||
}
|
||||
event.setMessage(FormatUtil.formatMessage(user, Permissions.CHAT, event.getMessage()));
|
||||
String group = ess.getRanks().getMainGroup(user);
|
||||
String world = user.getPlayer().getWorld().getName();
|
||||
|
||||
|
Reference in New Issue
Block a user