diff options
Diffstat (limited to 'webAO/packets/handlers/handleKB.ts')
| -rw-r--r-- | webAO/packets/handlers/handleKB.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleKB.ts b/webAO/packets/handlers/handleKB.ts new file mode 100644 index 0000000..b0aa2b2 --- /dev/null +++ b/webAO/packets/handlers/handleKB.ts @@ -0,0 +1,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); +} |
