mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Make ChatChannel an interface
This commit is contained in:
1 parent
b33ca93e94
commit
508ad88e26
2 files changed
+36
-62
No files matched your search
@@ -29,7 +29,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class CarbonChatChannel extends ChatChannel {
|
||||
public class CarbonChatChannel implements ChatChannel {
|
||||
|
||||
@NonNull
|
||||
private final String key;
|
||||
@@ -164,7 +164,7 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
"message", formatEvent.message());
|
||||
|
||||
if (this.isUserSpying(user, target)) {
|
||||
final String prefix = this.processPlaceholders(user, this.carbonChat.getConfig().getString("spy-prefix"));
|
||||
final String prefix = this.carbonChat.getConfig().getString("spy-prefix");
|
||||
|
||||
formatComponent = (TextComponent) MiniMessage.get().parse(prefix, "color",
|
||||
targetColor.asHexString()).append(formatComponent);
|
||||
|
||||
Reference in new issue
Block a user