From eb893d62c99817438d184f0d775a0f5a5de9f5dd Mon Sep 17 00:00:00 2001 From: Roman Zhuravlev Date: Sun, 2 Nov 2025 04:10:27 +0500 Subject: [PATCH] Use TagResolver instead of Template --- .../bukkit/commands/BukkitCommandServerUtils.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Bukkit/src/main/java/net/frankheijden/serverutils/bukkit/commands/BukkitCommandServerUtils.java b/Bukkit/src/main/java/net/frankheijden/serverutils/bukkit/commands/BukkitCommandServerUtils.java index ffaa7f4..9f44ca5 100644 --- a/Bukkit/src/main/java/net/frankheijden/serverutils/bukkit/commands/BukkitCommandServerUtils.java +++ b/Bukkit/src/main/java/net/frankheijden/serverutils/bukkit/commands/BukkitCommandServerUtils.java @@ -28,7 +28,8 @@ import net.frankheijden.serverutils.common.utils.KeyValueComponentBuilder; import net.frankheijden.serverutils.common.utils.ForwardFilter; import net.frankheijden.serverutils.common.utils.ListComponentBuilder; import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.minimessage.Template; +import net.kyori.adventure.text.minimessage.tag.Tag; +import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver; import org.bukkit.Bukkit; import org.bukkit.command.Command; import org.bukkit.command.PluginIdentifiableCommand; @@ -126,7 +127,7 @@ public class BukkitCommandServerUtils extends CommandServerUtils max) { messages.get(BukkitMessageKey.RELOADCONFIG_NOT_SUPPORTED).sendTo( sender, - Template.of("config", config) + TagResolver.resolver("config", Tag.inserting(Component.text(config))) ); return; } @@ -153,7 +154,8 @@ public class BukkitCommandServerUtils extends CommandServerUtils