/* eslint-disable require-jsdoc */ const Vec3 = require('vec3'); function inject(bot) { bot.position = new Vec3(null, null, null); bot._client.on('position', (position) => { bot.position = new Vec3(position.x, position.y, position.z); bot.write('teleport_confirm', {teleportId: position.teleportId}); }); } module.exports = {inject};