Closed UsainSrht closed 1 year ago
Issue is caused by these methods:
Since the second is a varargs method, {_var}.args()
is also a valid call for that method.
Fixed in https://github.com/TPGamesNL/skript-reflect/commit/8f6bb82950906489a5e382efef04f82690ea757e by prioritizing non-varargs methods.
If anyone has this situation (two methods with same signature apart from varargs) and wants to use the varargs one instead, use either argument specification (e.g. {-msg}.args[ComponentLike[]]()
) or specify a zero-length array in the method (e.g. {-msg}.args(new ComponentLike[0])
)
Describe the bug
#args()
method returns singleTranslatableComponent
instead ofList<Component>
To reproduce
Expected behavior
#args()
method to return ListScreenshots
Server information
Additional context I've tried with
[TranslatableComponent]args()
too