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

Add a commands.yml file for specifying custom command descriptions #2732

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Camotoy
Copy link
Member

@Camotoy Camotoy commented Dec 26, 2021

Command descriptions are not forwarded as a part of the standard Java protocol. Even if we implement this - which is likely - Spigot for example has "A Mojang provided command" for all Mojang commands. These changes allow users to specify custom descriptions for commands.

CommandManager getGeyserCommandManager();
@Contract("_ -> new")
default CommandManager createGeyserCommandManager(GeyserImpl geyser) {
return new CommandManager(geyser);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up that in my Sponge PR I'll have to change this javadoc to "allow" platforms to provide an existing command manager, since the sponge command manager needs to be created before the connector. There are some other things on my mind as well but they're manageable.

Also the _ in the contract infers null values are allowed as per jetbrains docs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun.

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

Successfully merging this pull request may close these issues.

None yet

2 participants