mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
RGB btw
This commit is contained in:
1 parent
5eefb5dda8
commit
8c9cad1bd7
12 files changed
+51
-87
No files matched your search
@@ -5,7 +5,6 @@ import co.aikar.commands.annotation.*;
|
||||
import me.minidigger.minimessage.text.MiniMessageParser;
|
||||
import net.draycia.simplechat.SimpleChat;
|
||||
import net.draycia.simplechat.channels.ChatChannel;
|
||||
import net.kyori.text.adapter.bukkit.TextAdapter;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@CommandAlias("tch|togglec|togglechannel|toggle")
|
||||
@@ -30,7 +29,7 @@ public class ToggleCommand extends BaseCommand {
|
||||
|
||||
message = MiniMessageParser.handlePlaceholders(message, "color", channel.getColor().toString());
|
||||
|
||||
TextAdapter.sendMessage(player, MiniMessageParser.parseFormat(message, "channel", channel.getName()));
|
||||
simpleChat.getPlatform().player(player).sendMessage(MiniMessageParser.parseFormat(message, "channel", channel.getName()));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user