Ore icon indicating copy to clipboard operation
Ore copied to clipboard

Add ability to search command list/permission lists

Open dualspiral opened this issue 6 years ago • 3 comments

For Nucleus, as you can imagine I have a lot of commands. On my documentation site, I have a searchable commands list, which uses a custom javascript function to filter commands based on their names.

See https://nucleuspowered.org/docs/commands2.html for my rather hacky fix.

It would be good for me if this functionality was available in Ore. I would envisage some sort of YAML file that could be uploaded with standard fields, such as command string (including subcommands), description and required permission for the command - plus anything else anyone finds useful. It would be good to have permissions in this way too, or potentially generalise this in some way for arbitrary content (I could use it for modules, but I also understand not wanting to generalise this for very few cases)

dualspiral avatar Feb 07 '18 22:02 dualspiral

In voice, we talked about adding the capability on adding gradle/maven/sbt tasks to auto create such information on plugin build with the possibility for auto-upload.

dualspiral avatar Feb 07 '18 22:02 dualspiral

Why not use Brigadier as a format for the plugins seeing as it already describes the plugins pretty well and will be needed by future versions of Minecraft anyway?

Also, why YAML. AFAIK, Sponge is mostly oriented towards HOCON, adding another format might be confusing for some devs.

Katrix avatar Feb 10 '18 19:02 Katrix

It doesn't have to be YAML, it's just the format I currently use for integration with Jekyll site publishing with Github Pages. It could be HOCON or just pure JSON.

The Brigadier format could work, though I have had no time to look at it recently - last time I looked at it it didn't do everything that our system can do, such as flags - though these are challenges for the command refactor too. I don't know what the state of it is now though.

dualspiral avatar Feb 24 '18 10:02 dualspiral