aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleKB.ts
blob: 78f572195a55396dbf6ba09db3aa54d979625619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { setBanned } 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[]) => {
  handleBans("Banned", args[1]);
  setBanned(true);
};