mc-beta-server/server/Packets/Packet3Chat.js
2021-08-12 04:58:56 +01:00

19 lines
No EOL
294 B
JavaScript

const Packet = require("./Packet.js");
class Packet3Chat extends Packet {
constructor(message = "") {
super(0x03);
this.message = message;
}
writePacket() {
super.writePacket();
this.writer.writeString(this.message);
return this.toBuffer();
}
}
module.exports = Packet3Chat;