From 9cd5b55654366f992abec7ac9156c16dea9bbe44 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Sun, 29 Aug 2021 20:28:23 +0200 Subject: add BB packet --- webAO/client.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webAO/client.js b/webAO/client.js index 6f600b0..20006ab 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -193,6 +193,7 @@ class Client extends EventEmitter { this.on("SM", this.handleSM.bind(this)); this.on("MM", this.handleMM.bind(this)); this.on("BD", this.handleBD.bind(this)); + this.on("BB", this.handleBB.bind(this)); this.on("KB", this.handleKB.bind(this)); this.on("KK", this.handleKK.bind(this)); this.on("DONE", this.handleDONE.bind(this)); @@ -1175,6 +1176,15 @@ class Client extends EventEmitter { this.banned = true; } + /** + * Handles the warning packet + * on client this spawns a message box you can't close for 2 seconds + * @param {Array} args ban reason + */ + handleBB(args) { + alert(safe_tags(args[1])); + } + /** * Handles the banned packet * this one is sent when you try to reconnect but you're banned -- cgit