2024-07-28 02:37:31 -04:00
|
|
|
module.exports = {
|
|
|
|
load: () => {
|
2024-07-27 02:39:18 -04:00
|
|
|
|
2024-07-28 02:37:31 -04:00
|
|
|
},
|
|
|
|
loadBot: (b) => {
|
|
|
|
b.add_sc_task('op', '/op @s[type=player]', true)
|
|
|
|
b._client.on('login', (p) => {
|
|
|
|
b.entityId = p.entityId
|
|
|
|
})
|
|
|
|
b._client.on('entity_status', (p) => {
|
|
|
|
if (p.entityId === b.entityId && p.entityStatus === 24) {
|
|
|
|
b.sc_tasks.op.failed = 1
|
|
|
|
} else if (p.entityId === b.entityId && p.entityStatus === 28) {
|
|
|
|
b.sc_tasks.op.failed = 0
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
2024-07-27 02:39:18 -04:00
|
|
|
}
|