From 56026c522ba84bc0211a896398d701cb79725b54 Mon Sep 17 00:00:00 2001 From: Caleb Date: Tue, 30 Aug 2022 17:50:08 -0400 Subject: Five packets --- webAO/packets/handlers/handleBD.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 webAO/packets/handlers/handleBD.ts (limited to 'webAO/packets/handlers/handleBD.ts') diff --git a/webAO/packets/handlers/handleBD.ts b/webAO/packets/handlers/handleBD.ts new file mode 100644 index 0000000..4ec291e --- /dev/null +++ b/webAO/packets/handlers/handleBD.ts @@ -0,0 +1,13 @@ +import { client, setBanned } from "../../client"; +import { safeTags } from "../../encoding"; + + +/** + * Handles the banned packet + * this one is sent when you try to reconnect but you're banned + * @param {Array} args ban reason + */ +export const handleBD = (args: string[]) => { + client.handleBans("Banned", safeTags(args[1])); + setBanned(true); +} \ No newline at end of file -- cgit