package Ġnet . tj alp . pe ach . apple . red . scheduler Ċ Ċ import Ġkotlinx . coroutines . Coroutine Dispatcher Ċ import Ġkotlinx . coroutines . Runnable Ċ import Ġnet . tj alp . pe ach . apple . pit . Apple Server Ċ import Ġnet . tj alp . pe ach . apple . red . Paper Apple Server Ċ import Ġorg . bukkit . Bu kkit Ċ import Ġkotlin . coroutines . Coroutine Context Ċ Ċ object ĠPaper Dispatcher Ġ: ĠCor outine Dispatcher () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġapple Ġ= ĠApple Server . get () Ġas ĠPaper Apple Server ĊĊĠĠĠ Ġoverride Ġfun Ġis Dispatch Needed ( context : ĠCor outine Context ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ! Bu kkit . is Primary Thread () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdispatch ( context : ĠCor outine Context , Ġblock : ĠRunnable ) Ġ{ ĊĠĠĠĠĠĠĠ ĠBu kkit . get Scheduler (). run Task ( apple . plugin , Ġblock ) ĊĠĠĠ Ġ} Ċ }