Closed benjaminforras closed 6 years ago
This is duplicate of #3 - this is what 3 will resolve.
Going to reopen this as I think we can resolve some of this independently of the help system, at least until help system is in place.
And if a basecommand does not provide a @Default, we can show list of subcommands.
@TryHardDood please see https://github.com/aikar/commands/wiki/Unstable-API and enable help
Then you may add:
@HelpCommand
public void doHelp(CommandSender sender, CommandHelp help) {
sendMsg(sender, heading("Anti Grief Help"));
help.showHelp();
}
This is short for @UnknownHandler
and @Default
(if not set) and @Subcommand("help")
if not set.
And will print help information (and searchable, /cmd help foo will search all metadata for foo and rank results)
This API is nearing release, and im needing feedback from others before I release it.
This will take over the default help message and satisfy your request.
Going to close this, please provide feedback on help system either on #3, or a new issue, or on discord.
When I type an invalid subcommand it says:
Unknown Command, please type /help
Why doesn't is shows the available subcommands with the syntax instead of that message.Edit: Wouldn't it be better When a player types the basecommand it would show the available subcommands with the syntax instead of nothing?