mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
RGB btw
This commit is contained in:
1 parent
5eefb5dda8
commit
8c9cad1bd7
12 files changed
+51
-87
No files matched your search
@@ -8,10 +8,9 @@ import me.clip.placeholderapi.PlaceholderAPI;
|
||||
import me.minidigger.minimessage.text.MiniMessageParser;
|
||||
import net.draycia.simplechat.SimpleChat;
|
||||
import net.draycia.simplechat.events.ChannelChatEvent;
|
||||
import net.kyori.text.Component;
|
||||
import net.kyori.text.adapter.bukkit.TextAdapter;
|
||||
import net.kyori.text.format.TextColor;
|
||||
import net.kyori.text.serializer.legacy.LegacyComponentSerializer;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -67,7 +66,7 @@ public class NationChatChannel extends SimpleChatChannel {
|
||||
continue;
|
||||
}
|
||||
|
||||
TextAdapter.sendMessage(onlinePlayer, formattedMessage);
|
||||
getSimpleChat().getPlatform().player(onlinePlayer).sendMessage(formattedMessage);
|
||||
}
|
||||
} else {
|
||||
// TODO: send "you don't belong to a nation" message
|
||||
@@ -78,7 +77,7 @@ public class NationChatChannel extends SimpleChatChannel {
|
||||
return;
|
||||
}
|
||||
|
||||
System.out.println(LegacyComponentSerializer.INSTANCE.serialize(formattedMessage));
|
||||
System.out.println(LegacyComponentSerializer.legacy().serialize(formattedMessage));
|
||||
|
||||
sendMessageToBungee(player, message);
|
||||
sendMessageToDiscord(player, message);
|
||||
|
||||
Reference in new issue
Block a user