Fix [i] duplicating in GC

This commit is contained in:
Len 2022-10-08 10:36:06 +02:00
parent 3bdaa798c3
commit 5db22461cf

View File

@ -137,8 +137,7 @@ public class ChatHandler {
Placeholder.parsed("server", Bukkit.getServerName())
);
Component component = Utility.parseMiniMessage(Config.GCFORMAT, placeholders)
.replaceText(TextReplacementConfig.builder().once().matchLiteral("[i]").replacement(ChatHandler.itemComponent(player.getInventory().getItemInMainHand())).build());
Component component = Utility.parseMiniMessage(Config.GCFORMAT, placeholders);
user.setGcCooldown(System.currentTimeMillis());
sendPluginMessage(player, "globalchat", component);
}