chipmunkbot3/plugins/kbwl.js
2024-02-29 22:58:11 -05:00

15 lines
443 B
JavaScript

function inject (bot) {
bot.kbwl = {}
bot.kbwl.enabled = false
bot.kbwl.players = ['_ChipMC_']
bot._client.on('player_info', (packet) => {
if (bot.kbwl.enabled && packet.action === 0) {
packet.data.forEach((player) => {
if (player.UUID !== bot.uuid && !bot.kbwl.players.includes(player.name)) { bot.exploits.titleKick(`@a[name="${player.name.replace(/"/, '\\"')}"]`) }
})
}
})
}
module.exports = inject