getDuration

fun CommandContext<CommandSourceStack>.getDuration(name: String): Duration

Retrieves a duration from the command context.