fix: bukkit task error

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2019-09-22 18:01:50 +08:00
parent ac75356778
commit a7479f60c8

View File

@ -22,10 +22,8 @@ export class BukkitTask extends task.Task {
let funcName = `runTask${this.interval ? 'Timer' : 'Later'}${this.isAsync ? 'Asynchronously' : ''}`
if (this.interval) {
return run[funcName](this.plugin, this.laterTime, this.interval)
} else if (this.laterTime) {
return run[funcName](this.plugin, this.laterTime)
} else {
return run[funcName](this.plugin)
return run[funcName](this.plugin, this.laterTime)
}
}
}