Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Add option/support for defining placeholder text #5

Open
Andre601 opened this issue Mar 29, 2020 · 0 comments
Open

[Suggestion] Add option/support for defining placeholder text #5

Andre601 opened this issue Mar 29, 2020 · 0 comments

Comments

@Andre601
Copy link

Idk how possible this is, but I would still like to suggest this here, which is a way, to register a placeholder text, which would be displayed on 1.13+ clients/servers, when doing tab-completion.

For example:
Let's assume I want to override/load the command /time which acts similar to the vanilla command, and has the sub commands add, set and querry.
I now want to add syntax to it like this:

@SubCommand("set")
@Syntax({"time", "world"}) // This would then be shown as <time> and <world>
@Completion({"#time", "#world"})
public void setTime(final CommandSender sender, final String time, World world){
    // We do stuff here
}

When we would now write /time set day (without using tab to auto-complete) would it now show <world> (or <time> <world>? I don't 100% get this stuff) above the command.

Here's an image showing what I mean using LuckPerms (Credit goes to Lucko for the image)
image

@LichtHund LichtHund added this to Command To-do in Rewrite Mar 6, 2021
@LichtHund LichtHund removed this from To-do in Rewrite Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant