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

Declared Commands #73

Open
tianxiu2b2t opened this issue Sep 16, 2023 · 0 comments
Open

Declared Commands #73

tianxiu2b2t opened this issue Sep 16, 2023 · 0 comments

Comments

@tianxiu2b2t
Copy link

image
use before configuration will be error.
now parser id has been changed

int i = 1;
for (String cmd : commands) {
msg.writeByte(1 | 0x04);
msg.writeVarInt(1);
msg.writeVarInt(i + 1);
msg.writeString(cmd);
i++;

        msg.writeByte(2 | 0x04 | 0x10);
        msg.writeVarInt(1);
        msg.writeVarInt(i);
        msg.writeString("arg");
        if (version.moreOrEqual(Version.V1_20))
            msg.writeVarInt(0);
        else
            msg.writeString("brigadier:string");
        msg.writeVarInt(0);
        msg.writeString("minecraft:ask_server");
        i++;
    }
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