2021-08-24 15:29:46 +01:00
|
|
|
/*
|
|
|
|
===========- Packet3Chat.js -===========
|
|
|
|
Created by Holly (tgpethan) (c) 2021
|
|
|
|
Licenced under MIT
|
|
|
|
========================================
|
|
|
|
*/
|
|
|
|
|
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;
|