Object function parameter with a text default value causes severe error #2353
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
priority: medium
Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Description
If you create a function with a parameter of type
object
and you want to give it a default value of a string, it causes an error.Steps to Reproduce
Create a function with a parameter type object and a default value of a string.
Expected Behavior
The default value to be applied when no parameter is passed.
Errors / Screenshots
An error is thrown from Skript, but only when no parameter is passed.
https://gist.github.com/ItzAtomikHD/53307190bb80120bcc4316827892b0d8
Server Information
The text was updated successfully, but these errors were encountered: