{"size": 447, "ext": "js", "max_stars_repo_path": "server/Packets/Packet3Chat.js", "max_stars_repo_name": "tgpethan/mc-beta-server", "max_stars_repo_stars_event_min_datetime": "2021-08-21T09:26:19.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-21T09:26:19.000Z", "max_issues_repo_path": "server/Packets/Packet3Chat.js", "max_issues_repo_name": "tgpethan/mc-beta-server", "max_issues_repo_issues_event_min_datetime": "2021-08-24T13:53:32.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-24T14:12:54.000Z", "max_forks_repo_path": "server/Packets/Packet3Chat.js", "max_forks_repo_name": "tgpethan/mc-beta-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 17.1923076923, "max_line_length": 41, "alphanum_fraction": 0.5749440716}
/*
	===========- Packet3Chat.js -===========
	  Created by Holly (tgpethan) (c) 2021
	  Licenced under MIT
	========================================
*/

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;