From 73373ce08b060c97fcb6311e862b8261c3222d9f Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 7 Aug 2024 20:49:33 +0200 Subject: add ban button --- webAO/client/sender/sendMA.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 webAO/client/sender/sendMA.ts (limited to 'webAO/client/sender/sendMA.ts') diff --git a/webAO/client/sender/sendMA.ts b/webAO/client/sender/sendMA.ts new file mode 100644 index 0000000..5ba4e4b --- /dev/null +++ b/webAO/client/sender/sendMA.ts @@ -0,0 +1,11 @@ +import { client } from "../../client"; + +/** + * Sends mod command. + * @param {number} id player id + * @param {number} length in hours + * @param {string} reason player message + */ +export const sendMA = (id: number, length: number, reason: string) => { + client.sender.sendServer(`MA#${id}#${length}#${reason}#%`); +} \ No newline at end of file -- cgit