aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendMA.ts
blob: 6260da1e807e72ac06d559776895982a368ed238 (plain)
1
2
3
4
5
6
7
8
9
10
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}#%`);
};