Describe the bug
Custom property expressions cause a severe error when they return nothing (i.e., when using a plain return, or return {_variable} where {_variable} is unset).
This may be the case for other custom syntax too, but I've only noticed it with property expressions thus far in my 1.19.4 testing.
To reproduce
Create a custom property expression with returns nothing.
Call it.
Expected behavior
The property expression successfully returns an empty value (<none>).
Screenshots
Example with a minimalist server setup. See VS Code sidebar, Skript + skript-reflect are my only plugins (as well as the patcher agent).
Server information
skript-reflect: 2.3.0
Skript: 2.7.0-beta2
Bukkit: 1.19.4 (running Purpur build 1968, for what that's worth)
Minecraft: 1.19.4
Java: 17.0.6
OS: Windows 11
Describe the bug Custom property expressions cause a severe error when they return nothing (i.e., when using a plain
return
, orreturn {_variable}
where{_variable}
is unset).This may be the case for other custom syntax too, but I've only noticed it with property expressions thus far in my 1.19.4 testing.
To reproduce
Expected behavior The property expression successfully returns an empty value (
<none>
).Screenshots Example with a minimalist server setup. See VS Code sidebar, Skript + skript-reflect are my only plugins (as well as the patcher agent).
Server information skript-reflect: 2.3.0 Skript: 2.7.0-beta2 Bukkit: 1.19.4 (running Purpur build 1968, for what that's worth) Minecraft: 1.19.4 Java: 17.0.6 OS: Windows 11