From 363747bd0278fec03b0eb1e9e4df6346495b2d88 Mon Sep 17 00:00:00 2001 From: Oth3r Date: Mon, 30 Sep 2024 14:25:33 -0500 Subject: [PATCH] reload message with tag --- src/main/java/one/oth3r/sit/command/SitCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/one/oth3r/sit/command/SitCommand.java b/src/main/java/one/oth3r/sit/command/SitCommand.java index 2015761..87ee902 100644 --- a/src/main/java/one/oth3r/sit/command/SitCommand.java +++ b/src/main/java/one/oth3r/sit/command/SitCommand.java @@ -8,7 +8,6 @@ import com.mojang.brigadier.suggestion.SuggestionsBuilder; import net.minecraft.server.command.CommandManager; import net.minecraft.server.command.ServerCommandSource; import net.minecraft.server.network.ServerPlayerEntity; -import net.minecraft.text.TextColor; import net.minecraft.util.Formatting; import net.minecraft.util.math.BlockPos; import one.oth3r.sit.utl.Data; @@ -77,7 +76,7 @@ public class SitCommand { if (args[0].equalsIgnoreCase("reload")) { Logic.reload(); - player.sendMessage(Utl.lang("msg.reloaded").styled(style -> style.withColor(TextColor.fromFormatting(Formatting.GREEN)))); + player.sendMessage(Utl.messageTag().append(Utl.lang("msg.reloaded").formatted(Formatting.GREEN))); } if (args[0].equalsIgnoreCase("purgeChairEntities")) Utl.Entity.purge(player,true);