blob: 328e99790a9f3b98c4fb0e7b905aeb7dce216e34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { client } from "../../client";
import { escapeChat } from "../../encoding";
/**
* Requests to change the music to the specified track.
* @param {string} track the track ID
*/
export const sendMusicChange = (track: string) => {
const showname = escapeChat((<HTMLInputElement>document.getElementById("ic_chat_name")).value);
const flags = 0;
client.sender.sendServer(`MC#${track}#${client.charID}#${showname}#${flags}#%`);
};
|