mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-01 10:48:28 +02:00
Updated readme screenshot
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module.exports = function(socket) {
|
||||
module.exports = (socket) => {
|
||||
|
||||
// spawn event
|
||||
socket.mcbot.on('spawn', function() {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user