diff options
| author | Caleb <caleb.mabry.15@cnu.edu> | 2022-08-30 17:50:08 -0400 |
|---|---|---|
| committer | Caleb <caleb.mabry.15@cnu.edu> | 2022-08-30 17:50:08 -0400 |
| commit | 56026c522ba84bc0211a896398d701cb79725b54 (patch) | |
| tree | e4c5ad3f1855dc2a15b7652c32b318fcee37a571 /webAO/packets/handlers/handleKB.ts | |
| parent | fd76aa9ea07c937e92d5f9f65b58c6f16957ce55 (diff) | |
Five packets
Diffstat (limited to 'webAO/packets/handlers/handleKB.ts')
| -rw-r--r-- | webAO/packets/handlers/handleKB.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleKB.ts b/webAO/packets/handlers/handleKB.ts new file mode 100644 index 0000000..8705b83 --- /dev/null +++ b/webAO/packets/handlers/handleKB.ts @@ -0,0 +1,12 @@ +import { client, setBanned } from "../../client"; +import { safeTags } from "../../encoding"; + +/** + * Handles the banned packet + * this one is sent when you are kicked off the server + * @param {Array} args ban reason + */ +export const handleKB = (args: string[]) => { + client.handleBans("Banned", safeTags(args[1])); + setBanned(true); +} |
