mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-19 04:43:28 +02:00
10 lines
256 B
JavaScript
10 lines
256 B
JavaScript
module.exports = (socket) => {
|
|
|
|
socket.mcbot.on('spawn', () => {
|
|
var pos = socket.mcbot.entity.position;
|
|
socket.emit('buffer:info', `Spawned at X:${pos.x}, Y:${pos.y}, Z:${pos.z}`);
|
|
socket.emit('bot:players', socket.mcbot.players);
|
|
});
|
|
|
|
};
|