executeCommand

fun MinecraftServer.executeCommand(command: String)(source)

Executes the given command for this server.

Note that the command must not contain the slash prefix.


fun MinecraftServer.executeCommand(command: String, source: CommandSourceStack)(source)

Executes the given command for the specified source.

Note that the command must not contain the slash prefix.