diff options
| author | stonedDiscord <Tukz@gmx.de> | 2024-08-07 20:49:33 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2024-08-07 20:49:33 +0200 |
| commit | 73373ce08b060c97fcb6311e862b8261c3222d9f (patch) | |
| tree | fd35bc89d22dcc0335c7e7ab276a843c69e3e526 /webAO/client/sender/sendMA.ts | |
| parent | 8bbb97917a595ebbd2cef080b3df6cb331193663 (diff) | |
add ban button
Diffstat (limited to 'webAO/client/sender/sendMA.ts')
| -rw-r--r-- | webAO/client/sender/sendMA.ts | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
