ArgumentDecimal

class ArgumentDecimal(suggestedValues: List<Double> = emptyList()) : Argument<Double>

ArgumentDecimal is a parsable argument that represents a decimal number.

Parameters

suggestedValues

A list of suggested decimal values for auto-completion.

Constructors

Link copied to clipboard
constructor(suggestedValues: List<Double> = emptyList())

Properties

Link copied to clipboard
open override val consumes: Int = 1

The number of input strings this argument consumes.

Functions

Link copied to clipboard
open override fun getParamFormat(isOptional: Boolean): String

Gets the usage string for this argument.

Link copied to clipboard
override fun parse(input: List<String>, sender: CommandSender): Double
open override fun parse(input: String, sender: CommandSender): Double

Parses the input string into the desired type.

Link copied to clipboard
override fun suggest(input: List<String>, sender: CommandSender): List<String>
open override fun suggest(input: String, sender: CommandSender): List<String>

Suggests possible completions for the input string.