Search in sources :

Example 1 with Command

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;
    });
}
Also used : Command(dev.hypnotic.command.Command)

Aggregations

Command (dev.hypnotic.command.Command)1