mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 13:31:32 +00:00
Gradle: runPaperServer should read Main-Class from manifest.
This commit is contained in:
@ -5,7 +5,8 @@ import org.quartz.JobExecutionContext
|
||||
|
||||
class SchedulerRunner : Job {
|
||||
override fun execute(context: JobExecutionContext) {
|
||||
val f = context.jobDetail.jobDataMap["function"] as () -> Unit
|
||||
f()
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val function = context.jobDetail.jobDataMap["function"] as () -> Unit
|
||||
function()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user