Commit
bcfa8be041887820a9fade9f192cf5dc187e9efb
by Flo.e3Changes in text to number conversions; see #174 and #204
The plugin now attempts to parse a number at the beginning of the text.
It may not use the entire string to create the number. It still uses the
dor `.` as decimal separator.
The changed behaviour has a number of benefits:
1. Comparison of numbers with locale specific formatting.
I your locale uses a `,` as decimal separator, then previous versions
of the plugin could not compare values of some placeholders
(like tps) using the < and > operators. Now 17,8 is parsed as 17
which allows comparison to other values. While some information is
lost I think this still very useful.
2. Minecraft version number comparison.
Minecraft version numbers are now treated a numbers, which makes it
easier to compare them using < and >. However beware that you can
only compare the major.minor version, i.e. 1.11.2 is parse as 1.11,
thus when using < and > there is no distinction between 1.11.1 and
1.11.2. Second caveat is that 1.8 is greater than 1.11 cause that's
how numbers work. I still think this can be useful in a number cases
where you previously had to use the == operator to compare the
client's version against a high number of version numbers.
(commit: bcfa8be)