CustomConfValues
RedNesto edited this page Apr 7, 2020
·
1 revision
The plugin's configurations can support values in a custom format, like number ranges.
Those ranges can be written in 3 forms:
-
fixed, the range will only consist of one value. Example:
fixed-range=1
-
bounded, a "true" range that spans from a lower bound to an upper bound. Example:
bounded-range=1-5
- The lower bound must be lesser than the upper bound
-
selective, similar to a list of number. Example:
selective-range=1;3;4
Minecraft IDs with a part replaced by a *
wildcard.
Examples:
-
minecraft:dirt
is a concrete ID -
minecraft:*
is a partial ID covering everything in theminecraft
namespace -
*
matches everything
For the plugin to be able to know by what partial ID a concrete ID is covered, it must resolve it by searching through all available IDs configured.
Resolution happens as follows:
- searches for a direct match (succeeds if the same concrete ID is available)
- searches for the namespace wildcard (e.g.
minecraft:*
) - falls back to the global wildcard
*
if present