cloud
cloud copied to clipboard
Add a way to specify certain commands to not be registered to Brigadier
On platforms like Bukkit and Paper where Brigadier is optional we should have a way to specify certain commands to not be registered to Brigadier. On platforms like Velocity where we always register with Brig, maybe we should implement a way to register these commands as greedy string commands (Bukkit style) internally.
edit:
A more robust and platform-agnostic approach may be to use command meta to indicate a node is no-brig
, and then have that node and every node below it registered as a greedy string to brigadier.
On platforms like Velocity where we always register with Brig, maybe we should implement a way to register these commands as greedy string commands (Bukkit style) internally.
wouldn't it be better to do this for all cases where brigadier is used then? we could do it in the cloud brigadier manager in that case
That probably makes sense -- whatever metadata is used could be recognized by the brigadier manager.