Make ChatChannel an interface

This commit is contained in:
Draycia committed 2020-09-25 01:43:17 -07:00
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);