Skip to content

Commit

Permalink
fix(command): 🐛 fix help commands color
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Jun 17, 2024
1 parent a569f72 commit 9b49800
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class CommandFactory {
private static Component getHelpMessage() {
return Component.text("----- Command Help -----", NamedTextColor.GREEN)
.append(Component.text("\n"))
.append(Component.text("\n", NamedTextColor.WHITE))
.append(Component.text("/altair data - Data commands\n"))
.append(Component.text("/altair credential - Default altair credential\n"))
.append(Component.text("/altair hitokoto - Hitokoto commands\n"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static LiteralCommandNode<CommandSource> createDataCommand(AltairVelocity
.executes(context -> {
context.getSource().sendMessage(
Component.text("----- Data Command Help -----", NamedTextColor.GREEN)
.append(Component.text("\n"))
.append(Component.text("\n", NamedTextColor.WHITE))
.append(Component.text("/altair data update - Update data"))
);
return Command.SINGLE_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static LiteralCommandNode<CommandSource> createHitokotoCommand(AltairVelo
.executes(context -> {
context.getSource().sendMessage(
Component.text("----- Hitokoto Command Help -----", NamedTextColor.GREEN)
.append(Component.text("\n"))
.append(Component.text("\n", NamedTextColor.WHITE))
.append(Component.text("/altair hitokoto random [count] - Get random quotations"))
);
return Command.SINGLE_SUCCESS;
Expand Down

0 comments on commit 9b49800

Please sign in to comment.