aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleKB.ts
blob: 4679780c36d7f9abfa3f798b620dcaa7842c765f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { client } from "../../client";
import { handleBans } from "../../client/handleBans";

/**
 * 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.banned = true;
  handleBans("Banned", args[1]);
};