This an AddOn for the ConfigCommands plugin. It adds arguments and functions related to numbers. To learn more about ConfigCommand AddOns, see this file.
CommandAPI v 8.4.1 by JorelAli (download)
ConfigCommands v 2.0.0+
For server owners: Make sure to put both the CommandAPI.jar and ConfigCommand.jar files in your plugins folder.
- InternalDoubleArgument
- InternalFloatArgument
- InternalFloatRangeArgument
- InternalIntegerRangeArgument
- InternalLongArgument
- < / lessThan
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: InternalBooleanArgument
Description: Returns true if the target number is less than the given number and false otherwise
- <= / lessThanOrEqualTo
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: InternalBooleanArgument
Description: Returns true if the target number is less than or equal to the given number and false otherwise
- > / greaterThan
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: InternalBooleanArgument
Description: Returns true if the target number is greater than the given number and false otherwise
- >= / greaterThanOrEqualTo
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: InternalBoolean
Description: Returns true if the target number is greater than or equal to the given number and false otherwise
- == / equalTo
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: InternalBooleanArgument
Description: Returns true if the target number is equal to the given number and false otherwise
- != / notEqualTo
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: InternalBooleanArgument
Description: Returns true if the target number is not equal to the given number and false otherwise
- + / add
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: Target class
Description: Returns the result of adding the target and given number
- - / subtract
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: Target class
Description: Returns the result of subtracting the given number from the target number
- * / multiply
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: Target class
Description: Returns the result of multiplying the target and given number Result: Target class
Description: Returns the result of subtracting the given number from the target number
- / / divide
Parameters: InternalDoubleArgument / InternalFloatArgument / InternalIntegerArgument / InternalLongArgument
Result: Target class
Description: Returns the result of dividing the target number by the given number
- toDouble
Parameters: None
Result: InternalDoubleArgument
Description: Returns the target number as a double
- toFloat
Parameters: None
Result: InternalFloatArgument
Description: Returns the target number as a float
- toInt
Parameters: None
Result: InternalIntegerArgument
Description: Returns the target number as an int
- toLong
Parameters: None
Result: InternalLongArgument
Description: Returns the target number as a long
- maxValue
Parameters: None
Result: Target class
Description: Returns the greatest value that can be stored in a number of the target type
- minValue
Parameters: None
Result: Target class
Description: Returns the most negative value that can be stored in a number of the target type
- "" / new
Parameters: None / InternalStringArgument
Result: Target class
Description: Creates a new number. If no arguments are given, the default value is 0. If a string is given, the base 10 value it represents is used.
Class to add to: InternalIntegerArgument
type: Double
Java Class: Double
- forCommand
Parameters: None
Result: InternalStringArgument
Description: Returns a string representation of the target double in decimal
type: Float
min - determines the minimum value that may be input to the command
max - determines the maximum value that may be input to the command
Java Class: Float
- forCommand
Parameters: None
Result: InternalStringArgument
Description: Returns a string representation of the target float in decimal.
type: FloatRange
Java Class: FloatRange
- getLowerBound
Parameters: None
Result: InternalFloatArgument
Description: Returns the lower bound of the target FloatRange
- getUpperBound
Parameters: None
Result: InternalFloatArgument
Description: Returns the upper bound of the target FloatRange
- isInRange
Parameters: InternalIntegerArgument / InternalDoubleArgument / InternalFloatArgument / InternalLongArgument
Result: InternalBooleanArgument
Description: Returns true if the given number is within the range of the target FloatRange
- setLowerBound
Parameters: InternalFloatArgument
Result: None
Description: Sets the lower bound of the target FloatRange to the given float
- setUpperBound
Parameters: InternalFloatArgument
Result: None
Description: Sets the upper bound of the target FloatRange to the given float
- "" / new
Parameters: InternalFloatArgument, InternalFloatArgument
Result: InternalFloatRangeArgument
Description: Creates a new FloatRange with the lower bound at the first float and the upper bound at the second float
- newGreaterThanOrEqual
Parameters: InternalFloatArgument
Result: InternalFloatRange
Description: Creates a new FloatRange with the lower bound at the given float and the upper bound at the greatest finite float
- newLessThanOrEqual
Parameters: InternalFloatArgument
Result: InternalFloatRange
Description: Creates a new FloatRange with the upper bound at the given float and the lower bound at the most negative finite float
type: IntegerRange
Java Class: IntegerRange
- getLowerBound
Parameters: None
Result: InternalIntegerArgument
Description: Returns the lower bound of the target IntegerRange
- getUpperBound
Parameters: None
Result: InternalIntegerArgument
Description: Returns the upper bound of the target IntegerRange
- isInRange
Parameters: InternalIntegerArgument / InternalDoubleArgument / InternalFloatArgument / InternalLongArgument
Result: InternalBooleanArgument
Description: Returns true if the given number is within the range of the target IntegerRange
- setLowerBound
Parameters: InternalIntegerArgument
Result: None
Description: Sets the lower bound of the target IntegerRange to the given int
- setUpperBound
Parameters: InternalIntegerArgument
Result: None
Description: Sets the upper bound of the target IntegerRange to the given int
- "" / new
Parameters: InternalIntegerArgument, InternalIntegerArgument
Result: InternalIntegerRangeArgument
Description: Creates a new IntegerRange with the lower bound at the first int and the upper bound at the second int
- newGreaterThanOrEqual
Parameters: InternalIntegerArgument
Result: InternalIntegerRange
Description: Creates a new IntegerRange with the lower bound at the given int and the upper bound at the greatest finite int
- newLessThanOrEqual
Parameters: InternalIntegerArgument
Result: InternalIntegerRange
Description: Creates a new IntegerRange with the upper bound at the given int and the lower bound at the most negative finite int
type: Long
Java Class: Long
- forCommand
Parameters: None
Result: InternalStringArgument
Description: Returns a string representation of the target long in decimal