cloud icon indicating copy to clipboard operation
cloud copied to clipboard

Add a way to specify certain commands to not be registered to Brigadier

Open jpenilla opened this issue 3 years ago • 2 comments

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.

jpenilla avatar Oct 28 '20 03:10 jpenilla

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

Citymonstret avatar Nov 25 '20 11:11 Citymonstret

That probably makes sense -- whatever metadata is used could be recognized by the brigadier manager.

zml2008 avatar Nov 25 '20 19:11 zml2008