From fc10f1217e7473179a1af2fe0a7af7714ba0aaa0 Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:24:11 +0200 Subject: [PATCH] Make username parsed --- .../net/blockhost/minicommands/MiniCommandRegistration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/blockhost/minicommands/MiniCommandRegistration.java b/src/main/java/net/blockhost/minicommands/MiniCommandRegistration.java index be3791c..c0aa564 100644 --- a/src/main/java/net/blockhost/minicommands/MiniCommandRegistration.java +++ b/src/main/java/net/blockhost/minicommands/MiniCommandRegistration.java @@ -87,7 +87,7 @@ public void execute(Invocation invocation) { for (var message : messages) { var username = source instanceof Player player ? player.getUsername() : "Console"; - TagResolver resolver = Placeholder.component("name", Component.text(username)); + TagResolver resolver = Placeholder.parsed("name", username); if (plugin.getServer().getPluginManager().isLoaded("miniplaceholders")) { resolver = TagResolver.resolver(MiniPlaceholdersModule.getTagResolver(source), resolver); }