aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleKB.ts
blob: 8705b83337c2733f9cf6b1e9c37e56b8cd78e4e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}