blob: 3192cb1807c59e3ba4a0e2aad18500248cc21fe6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { setBanned } from "../../client";
import { safeTags } from "../../encoding";
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", safeTags(args[1]));
setBanned(true);
};
|