player list

This commit is contained in:
2023-12-10 16:50:59 -05:00
parent 956942bc90
commit 22b915ee56
3 changed files with 93 additions and 2 deletions

View File

@ -7,7 +7,7 @@ const {CJbot} = require('../model/minecraft');
const inventoryViewer = require('mineflayer-web-inventory');
const commands = require('./commands');
const {onJoin} = require('./player_list')
for(let name in conf.mc.bots){
if(CJbot.bots[name]) continue;
@ -22,9 +22,12 @@ for(let name in conf.mc.bots){
bot.on('onReady', async function(argument) {
// inventoryViewer(bot.bot);
onJoin(bot);
await sleep(1000);
bot.bot.setControlState('jump', true);
setTimeout(()=> bot.bot.setControlState('jump', false), 5000)
})
// bot.on('message', function(...args){
@ -47,4 +50,5 @@ try{
console.log('!!!!!!!! error:', e)
}})()
// module.exports = {bot: ez, henry, owen, linda, jimin, nova, ez};