mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-01 10:48:28 +02:00
12 lines
211 B
JavaScript
12 lines
211 B
JavaScript
module.exports = (socket) => {
|
|
|
|
function onPlayers() {
|
|
if (socket.mcbot && socket.mcbot.players) {
|
|
socket.emit('bot:players', socket.mcbot.players);
|
|
}
|
|
}
|
|
|
|
socket.on('players', onPlayers);
|
|
|
|
};
|