mc-beta-server/server/Packets/Packet3Chat.js

19 lines
294 B
JavaScript
Raw Normal View History

2021-08-12 04:58:56 +01:00
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;