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
+2
-3
@@ -6,7 +6,6 @@ import net.draycia.simplechat.SimpleChat;
|
||||
import net.draycia.simplechat.channels.ChatChannel;
|
||||
import net.draycia.simplechat.storage.ChatUser;
|
||||
import net.draycia.simplechat.storage.UserChannelSettings;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@CommandAlias("spych|spychannel|spy")
|
||||
@@ -36,7 +35,7 @@ public class SpyChannelCommand extends BaseCommand {
|
||||
message = simpleChat.getConfig().getString("language.spy-toggled-on");
|
||||
}
|
||||
|
||||
user.sendMessage(MiniMessage.get().parse(message, "br", "\n",
|
||||
user.sendMessage(simpleChat.processMessage(message, "br", "\n",
|
||||
"color", "<color:" + channel.getColor().toString() + ">", "channel", channel.getName()));
|
||||
}
|
||||
|
||||
@@ -54,7 +53,7 @@ public class SpyChannelCommand extends BaseCommand {
|
||||
message = simpleChat.getConfig().getString("language.spy-whispers-on");
|
||||
}
|
||||
|
||||
user.sendMessage(MiniMessage.get().parse(message, "br", "\n"));
|
||||
user.sendMessage(simpleChat.processMessage(message, "br", "\n"));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user