execute

fun <T> execute(server: MinecraftServer, operation: () -> T): T(source)

Executes synchronously on the calling server thread without scheduling asynchronous work.