An error is displayed in the console when I use the expression scripts.
Just run send "%scripts%".
There should be no error.
https://gist.github.com/Romitou/f7685d189b8735eec9e500b56d530fad
This is caused by ExprScripts using String#replaceFirst with the intention of the first argument being a normal string, but it is actually parsed as regex: https://github.com/SkriptLang/Skript/blob/master/src/main/java/ch/njol/skript/expressions/ExprScripts.java#L87
Should be fixed in #3194, and you are welcome to test out the nighty-build to find out (https://github.com/SkriptLang/Skript/suites/952837183/artifacts/11903429). However, the nightly build will contain the serious #3185 bug, just so that you are aware.
Thank you for the fix! 馃槃
It's working.
Most helpful comment
This is caused by ExprScripts using
String#replaceFirstwith the intention of the first argument being a normal string, but it is actually parsed as regex: https://github.com/SkriptLang/Skript/blob/master/src/main/java/ch/njol/skript/expressions/ExprScripts.java#L87