lucko / commodore

Utility for using Minecraft's 1.13 'brigadier' library in Bukkit plugins.
MIT License
176 stars 15 forks source link

Use redirect instead of copying the command node for each alias #14

Closed marcbal closed 4 years ago

marcbal commented 4 years ago

Like the vanilla /msg command, when registering a CommandNode, Commodore should register the aliases by using a redirection to the original node instead of duplicating it. It will reduce the size of the command declaration packet sent to the client, especially for big command structure.

lucko commented 4 years ago

LGTM, thank you!