CommandResult

data class CommandResult(val success: Boolean, val message: String, val originalCommand: String, val executionTimeMs: Long, val blocksAffected: Int = 0, val entitiesAffected: Int = 0)(source)

Immutable result of a single command execution.

Constructors

Link copied to clipboard
constructor(success: Boolean, message: String, originalCommand: String, executionTimeMs: Long, blocksAffected: Int = 0, entitiesAffected: Int = 0)

Properties

Link copied to clipboard

number of blocks affected (0 if not applicable)

Link copied to clipboard

number of entities affected (0 if not applicable)

Link copied to clipboard

wall-clock execution time in milliseconds

Link copied to clipboard

human-readable result or error description

Link copied to clipboard

the command string that was executed

Link copied to clipboard

whether the command executed successfully