mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
Use canPlayerUse when player sends messages normally
This commit is contained in:
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() + ">");
|
||||
|
||||
Reference in new issue
Block a user