This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
### What's New: | ||
|
||
* Switched to [EvalEX](https://ezylang.github.io/EvalEx/) for expression parsing. | ||
|
||
This comes with a bunch of improvements. The main of which is support for all object fields and methods, for example: | ||
|
||
Before you had a limited number of "extractions" you could use on an object, like `x` and `player/level`, but now, you can specify **any** field or method: | ||
|
||
Old: | ||
|
||
``` | ||
/say hi ${{this_entity[x]}} | ||
``` | ||
|
||
New: | ||
``` | ||
/say hi ${{this_entity.getX}} | ||
/say hi ${{round(sqrt(abs(level.getSeed)), 0)}} | ||
``` | ||
|
||
* Added additional casts to the `$(){{}}` syntax. `bool`, `int`, `double` | ||
* `cmd:arithmetica` now supports casts and returns strings by default. Now it also requires permission level 2. | ||
* Added `structContainsKey` function to expressions. | ||
* Moved custom `random`, `lerp` and `clamp` functions to BigDecimal. | ||
* There was an attempt at optimizing reflective field lookups by caching invalid fields and constructing a lazy class hierarchy which propagates found fields and methods downstream. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters