run

fun run(serverObj: Any?, command: String): String

Schedule command on the server thread (commands touch game state and Brigadier asserts the server thread) and block until its captured output arrives. Never throws — returns an explanatory string on any failure.

Parameters

serverObj

the live MinecraftServer (from the server lane's handle)