Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support command data graph (tab completion for 1.13+) #636

Open
zardoy opened this issue Sep 5, 2023 · 0 comments
Open

Support command data graph (tab completion for 1.13+) #636

zardoy opened this issue Sep 5, 2023 · 0 comments

Comments

@zardoy
Copy link
Contributor

zardoy commented Sep 5, 2023

https://wiki.vg/Command_Data

on login server seems to send declare_commands (0x10) packet that looks like this:

packet data example
{
    nodes: [
        {
            "flags": {
                "unused": 0,
                "has_custom_suggestions": 0,
                "has_redirect_node": 0,
                "has_command": 0,
                "command_node_type": 0
            },
            "children": [
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9
            ]
        },
        {
            "flags": {
                "unused": 0,
                "has_custom_suggestions": 0,
                "has_redirect_node": 0,
                "has_command": 1,
                "command_node_type": 1
            },
            "children": [
                11
            ],
            "extraNodeData": {
                "name": "help"
            }
        }
    ],
    rootIndex: 0
}

don't think it would hard to implement, just posting it here for the record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant