You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is part of a series of issues regarding the extension of the Paper documentation regarding Paper's Brigadier API.
The command dispatcher is retrievable using Commands#getDispatcher(). With it, one can query/modify/register commands. It can also just be used to work with the root command node in general.
All of its methods should be explained. An example on how to use most of them does not have to be given, since the usage of the dispatcher assumes a user to have general knowledge about the internal functionality of commands.
Though, an example for extending existing commands can be given. For this, one could extend a vanilla command to include their own sub command. Perhaps, this could be done for the /effect vanilla command:
I myself also haven't yet 100% figured out the dispatcher either. There might be a cleaner way to do what I did here. Iif so, please comment it on this issue 🚀
The text was updated successfully, but these errors were encountered:
Note
This issue is part of a series of issues regarding the extension of the Paper documentation regarding Paper's Brigadier API.
The command dispatcher is retrievable using
Commands#getDispatcher()
. With it, one can query/modify/register commands. It can also just be used to work with the root command node in general.All of its methods should be explained. An example on how to use most of them does not have to be given, since the usage of the dispatcher assumes a user to have general knowledge about the internal functionality of commands.
Though, an example for extending existing commands can be given. For this, one could extend a vanilla command to include their own sub command. Perhaps, this could be done for the
/effect
vanilla command:Warning
I myself also haven't yet 100% figured out the dispatcher either. There might be a cleaner way to do what I did here. Iif so, please comment it on this issue 🚀
The text was updated successfully, but these errors were encountered: