Move module commands under /iris module <root> <command...>

Module commands get their own branch, with the alias /iris m. <root> is the
root a module registers through ToolingRegistry.registerCommand, so
/iris module structure list|info|verify replaces /iris structure list.

- Bukkit: the branch word is taken before the Director runs; the Director
  first, then dispatcher fallback and the merged completions are gone. The
  first word completes "module".
- Modded: the greedy-string tails at the /iris root and inside the
  structure literal are gone. The module and m literals take one greedy
  string, because the roots belong to the modules of the pack the sender
  resolves to when the line runs, so they cannot be Brigadier nodes when the
  tree is built.
- /iris module alone lists the mounted roots and their commands; an unknown
  root is an error that points to that list.
- Permissions are unchanged: iris.all, and commands opened to everyone.
- /iris structure import and capture stay Director commands.
This commit is contained in:
piexel committed 2026-11-06 14:29:05 +01:00
1 parent 88fe8c8bcd
commit f7aaed79a6
33 files changed
+230 -102

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@
"iris.bukkit.commandstructure.could_not_resolve_pack_dimension_2": "§cCould not resolve the pack for dimension {value}",
"iris.bukkit.commandstructure.importing_all_vanilla_datapack_structures_into_overwrite": "§aImporting all vanilla & datapack structures into §f{value}§a (overwrite)...",
"iris.bukkit.commandstructure.import_complete_structures_objects_written_failed": "§aImport complete: §f{imported}§a structures/objects written, §f{failed}§a failed.",
"iris.bukkit.commandstructure.reference_them_from_biome_region_dimension_structures_list_run_iris": "§7Reference them from a biome/region/dimension 'structures' list, or run /iris structure list {value} to refresh the index. Regenerate chunks for changes to take effect.",
"iris.bukkit.commandstructure.reference_them_from_biome_region_dimension_structures_list_run_iris": "§7Reference them from a biome/region/dimension 'structures' list, or run /iris module structure list to refresh the index. Regenerate chunks for changes to take effect.",
"iris.bukkit.commandstructure.could_not_resolve_pack_dimension_3": "§cCould not resolve the pack for dimension {value}",
"iris.bukkit.commandstructure.captured_structures_place_them_from_structures_list_regenerate_chunks_delete": "§7Captured {value} structures. Place them from a 'structures' list and regenerate chunks. Delete a structures/*.json to re-capture it.",
"iris.bukkit.commandstudio.opening_studio_pack_seed": "§aOpening studio for the \"{value}\" pack (seed: {seed})",