Fix [i] duplicating in GC
This commit is contained in:
1 parent
3bdaa798c3
commit
5db22461cf
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user