6.1.0
Enhance condition operators: expanded support for text and digit comparisons
Condition Operators:
Text operators:
=, ==, eq, equal_to, equals — equals
!=, neq, ne, not_equal — not equals
~=, ~~, contains, contains_string — contains
!~=, !~~, !contains, not_contains, not_contains_string — does not contain
starts, starts_with — starts with
ends, ends_with — ends with
matches, regex — matches regex
!matches, !regex, not_matches, not_regex — does not match regex
Digit operators:
>, gt, greater_than — greater than
<, lt, less_than — less than
>=, gte, greater_than_or_equal — greater than or equal
<=, lte, less_than_or_equal — less than or equal
=, ==, eq, equal_to, equals — equals
!=, neq, ne, not_equal — not equals
(All text operators above also work for digits, comparing as strings.)
---
- **`config.yml` & `custom_gui.yml_example`**:
- Documented and expanded available condition operators for text and numbers, including new options for equality, inequality, contains, regex matching, starts/ends with, and more.
- **`GUIUtils`**:
- Updated condition handling logic to support new operators with `PlaceholderAPI` replacements for placeholders.
- Added more robust string and digit comparison capabilities with detailed operator checks.
- Improved maintainability by using `switch-case` for operator evaluations.
This change significantly expands flexibility in defining conditions across the configuration and custom GUI systems.