blob: 1358dd919fcba20c4b25c3d1bfd5bd92f6a83bdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
Description: Emmits a server-wide message as `info`
*/
exports.run = async (core, server, socket, data) => {
if (socket.uType != 'admin') {
// ignore if not admin
return;
}
server.broadcast( {
cmd: 'info',
text: `Server Notice: ${data.text}`
}, {});
};
exports.requiredData = ['text'];
exports.info = {
name: 'shout',
usage: 'shout {text}',
description: 'Displays passed text to every client connected'
};
|