You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if the title isn't worded amazingly, I'm not sure how best to put it.
Example Test
Here's an example of me trying to get Skript to send me my stringified player object in dev26 (this should print out my name):
For the sake of showing how it should work, here's a test run in dev25 immediately afterwards (stopped server, replaced the jar with dev25, started again, no other changes):
Unlike the other issues I've reported, this is not just an issue within chat messages. Even if I run, for example, set player's tool's name to "%""Mr_Simba"" parsed as player%", it will give the same error. This is not the case in dev25 or below, where it will work as expected based on the second screenshot.
Also, I know this example seems poor, but it's the first thing I thought of on the spot to demonstrate the issue. Especially when using addons, needing to stringify expressions with text within them is pretty common. One common example for my server is when using SkStuff, which has the expression tag %text% of NBT of %entity%. If I want to compare the returned NBT tag to a string (which I do a lot), I could run if "%tag ""Example"" of NBT of player%" is "1". This no longer parses in dev26, which results in dozens of errors when loading all of my scripts (which work fine and parse correctly on dev25). In the case of that SkStuff expression, Skript fails at parsing it and says that the tag is not a world.
Setup
Spigot-d276ab1-1f6c04c for 1.11.2 (1 version behind latest)
The text was updated successfully, but these errors were encountered:
TheBentoBox
added
the
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
label
Apr 10, 2017
TheBentoBox
changed the title
Quotes embedded in expressions no longer parse the expression correctly
Expressions with embedded quotes no longer parse
Apr 10, 2017
Hello
Sorry if the title isn't worded amazingly, I'm not sure how best to put it.
Example Test
Here's an example of me trying to get Skript to send me my stringified player object in dev26 (this should print out my name):
For the sake of showing how it should work, here's a test run in dev25 immediately afterwards (stopped server, replaced the jar with dev25, started again, no other changes):
Unlike the other issues I've reported, this is not just an issue within chat messages. Even if I run, for example,
set player's tool's name to "%""Mr_Simba"" parsed as player%"
, it will give the same error. This is not the case in dev25 or below, where it will work as expected based on the second screenshot.Also, I know this example seems poor, but it's the first thing I thought of on the spot to demonstrate the issue. Especially when using addons, needing to stringify expressions with text within them is pretty common. One common example for my server is when using SkStuff, which has the expression
tag %text% of NBT of %entity%
. If I want to compare the returned NBT tag to a string (which I do a lot), I could runif "%tag ""Example"" of NBT of player%" is "1"
. This no longer parses in dev26, which results in dozens of errors when loading all of my scripts (which work fine and parse correctly on dev25). In the case of that SkStuff expression, Skript fails at parsing it and says that the tag is not a world.Setup
The text was updated successfully, but these errors were encountered: