mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Add MiniMessage MD support
This commit is contained in:
1 parent
c3e23a654c
commit
1ef65accba
20 files changed
+52
-54
No files matched your search
@@ -7,7 +7,6 @@ import co.aikar.commands.annotation.Default;
|
||||
import net.draycia.simplechat.SimpleChat;
|
||||
import net.draycia.simplechat.storage.ChatUser;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@CommandAlias("reply|r")
|
||||
@@ -31,7 +30,7 @@ public class ReplyCommand extends BaseCommand {
|
||||
|
||||
if (user.getReplyTarget() == null) {
|
||||
String message = simpleChat.getConfig().getString("language.no-reply-target");
|
||||
Component component = MiniMessage.get().parse(message, "br", "\n");
|
||||
Component component = simpleChat.processMessage(message, "br", "\n");
|
||||
user.sendMessage(component);
|
||||
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user