Use canPlayerUse when player sends messages normally

This commit is contained in:
Draycia committed 2020-08-06 02:01:43 -07:00
1 parent 2934b9eacb
commit 0751305cdd
2 files changed
+7

No files matched your search

@@ -95,6 +95,8 @@ public class CarbonChatChannel extends ChatChannel {
String prefix = processPlaceholders(user, carbonChat.getConfig().getString("spy-prefix"));
// TODO: restructure plugin to always format messages per player
if (userColor == null) {
if (isUserSpying(user, chatUser)) {
prefix = prefix.replace("<color>", "<color:" + getColor() + ">");