15 lines
443 B
JavaScript
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
|