Fix [i] duplicating in GC
This commit is contained in:
parent
3bdaa798c3
commit
5db22461cf
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user