Skip to content

Commit

Permalink
feat(hitokoto): ✨ update hitokoto command help
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Jun 17, 2024
1 parent 64d5eb7 commit a569f72
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.velocitypowered.api.command.BrigadierCommand;
import com.velocitypowered.api.command.CommandSource;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import org.bsrserver.altair.velocity.AltairVelocity;
import org.bsrserver.altair.velocity.data.DataManager;

Expand All @@ -20,7 +21,11 @@ private static void sendRandomQuotations(AltairVelocity altairVelocity, CommandS
public static LiteralCommandNode<CommandSource> createHitokotoCommand(AltairVelocity altairVelocity) {
return BrigadierCommand.literalArgumentBuilder("hitokoto")
.executes(context -> {
context.getSource().sendPlainMessage("Usage: /altair hitokoto random [count]");
context.getSource().sendMessage(
Component.text("----- Hitokoto Command Help -----", NamedTextColor.GREEN)
.append(Component.text("\n"))
.append(Component.text("/altair hitokoto random [count] - Get random quotations"))
);
return Command.SINGLE_SUCCESS;
})
.then(
Expand Down

0 comments on commit a569f72

Please sign in to comment.