List command usages in vanilla's registration order and run the release tree
Brigadier keeps children in registration order and /help prints them that way; tools/generate_command_order.py records vanilla's order where Horizon's tree differs. The game now runs the release integrated server's tree; HORIZON_DEV_COMMANDS restores the development commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -120,7 +120,8 @@ fn tree(d: &Dispatcher, node: usize) -> Value {
|
||||
}
|
||||
children.insert(child.name().to_owned(), v);
|
||||
}
|
||||
let mut v = json!({"children": children});
|
||||
let order: Vec<&str> = n.children.iter().map(|&c| d.nodes[c].name()).collect();
|
||||
let mut v = json!({"children": children, "order": order});
|
||||
if n.command.is_some() {
|
||||
v["executable"] = json!(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user