Skip to content

Commit

Permalink
Further improve /ac help
Browse files Browse the repository at this point in the history
  • Loading branch information
3TUSK committed Jul 22, 2022
1 parent 8368da0 commit 8f30cec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/teacon/areacontrol/AreaControlCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.HoverEvent;
import net.minecraft.network.chat.Style;
import net.minecraft.network.chat.TextColor;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.resources.ResourceKey;
Expand Down Expand Up @@ -123,6 +124,7 @@ private static int help(CommandContext<CommandSourceStack> context) {
var markerToolName = markerTool.getDisplayName();
var displayName = markerToolName.copy()
.withStyle(Style.EMPTY
.withColor(ChatFormatting.BLUE)
.withUnderlined(Boolean.TRUE)
.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, markerTool.getHoverName().copy()
.append(new TranslatableComponent("area_control.claim.how_to.give_item").withStyle(ChatFormatting.GRAY))))
Expand Down

0 comments on commit 8f30cec

Please sign in to comment.