use of dev.hypnotic.command.Command in project Hypnotic-Client by Hypnotic-Development.
the class Commands method build.
@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.executes(context -> {
for (Command cmd : CommandManager.INSTANCE.getCommands()) {
ChatUtils.tellPlayerRaw(ColorUtils.red + "Command" + ColorUtils.gray + ": " + cmd.getName());
ChatUtils.tellPlayerRaw(ColorUtils.gray + cmd.getDescription());
}
return SINGLE_SUCCESS;
});
}
Aggregations