im new to both kube and FTB quests and am trying to use kube make a daily quest i found a bit of old documentaion for intergratiation which said to use this script for doing a time quest. onEvent('ftbquests.custom_task.75381f79', event => {
log.info('Custom task!')
event.checkTimer = 20
event.check = (task, player) => {
if (player.world.daytime && player.world.raining) {
task.progress++
}
}
})
but i recived an error after applying