mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Use MineDown-Adventure vs MineDown
This commit is contained in:
1 parent
7714fee133
commit
5a8265f215
3 files changed
+7
-8
No files matched your search
@@ -13,7 +13,7 @@ dependencies {
|
||||
compile 'net.kyori:adventure-nbt:4.0.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
|
||||
compile 'net.kyori:adventure-text-minimessage:3.0.0-SNAPSHOT'
|
||||
compile 'de.themoep:minedown:1.6.1-SNAPSHOT'
|
||||
compile 'de.themoep:minedown-adventure:1.6.1-SNAPSHOT'
|
||||
compile 'co.aikar:idb-bukkit:1.0.0-SNAPSHOT'
|
||||
compile 'com.zaxxer:HikariCP:2.4.1'
|
||||
compile 'io.github.leonardosnt:bungeechannelapi:1.0.0-SNAPSHOT'
|
||||
|
||||
+2
-3
@@ -1,12 +1,11 @@
|
||||
package net.draycia.simplechat.managers;
|
||||
|
||||
import de.themoep.minedown.MineDown;
|
||||
import de.themoep.minedown.adventure.MineDown;
|
||||
import me.clip.placeholderapi.PlaceholderAPI;
|
||||
import net.draycia.simplechat.SimpleChat;
|
||||
import net.kyori.adventure.platform.bukkit.BukkitAudiences;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
import net.kyori.adventure.text.serializer.bungeecord.BungeeCordComponentSerializer;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class AdventureManager {
|
||||
@@ -36,7 +35,7 @@ public class AdventureManager {
|
||||
}
|
||||
|
||||
private Component processMineDown(String input, String... placeholders) {
|
||||
return BungeeCordComponentSerializer.get().deserialize(MineDown.parse(input, placeholders));
|
||||
return MineDown.parse(input, placeholders);
|
||||
}
|
||||
|
||||
public BukkitAudiences getAudiences() {
|
||||
|
||||
Reference in new issue
Block a user