Open TheLimeGlass opened 4 months ago
2.8.0-dev Paper 1.20.1
The error at https://github.com/SkriptLang/Skript/blob/1a009cdb1419292046de0e95429bcb40eaaaab15/src/main/java/ch/njol/skript/effects/EffReturn.java#L73 is not properly erroring when a delay is added into a function. Instead Skript is erroring stating that the return effect cannot be used in a function, when this is indeed incorrect.
To properly print the error stating delays cannot be used in functions.
function testing(empty: boolean = false) :: boolean: wait a second return true
Return API https://github.com/SkriptLang/Skript/pull/6118 which is not on this Skript jar.
This isn't skript issue this is reflect, put over there. they have their own system and overrides skript's
https://github.com/SkriptLang/skript-reflect/pull/78
Actually keeping this open for an admin to transfer this issue.
Skript/Server Version
Bug Description
The error at https://github.com/SkriptLang/Skript/blob/1a009cdb1419292046de0e95429bcb40eaaaab15/src/main/java/ch/njol/skript/effects/EffReturn.java#L73 is not properly erroring when a delay is added into a function. Instead Skript is erroring stating that the return effect cannot be used in a function, when this is indeed incorrect.
Expected Behavior
To properly print the error stating delays cannot be used in functions.
Steps to Reproduce
Errors or Screenshots
Other
Return API https://github.com/SkriptLang/Skript/pull/6118 which is not on this Skript jar.
Agreement