Open tianxiu2b2t opened 1 year ago
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++; }
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++;