This message was deleted.
# plugin-development
s
This message was deleted.
v
You are just giving the path part of an URL to it, how do you expect that to work?
I don't think you can give a URL directly, it is a file collection
Well, you can give it a URL, but only if it is a
file:
URL, which it will not be for a file shipped with your plugin
You probably need something like
Copy code
.from(resources.text.fromUri(MyPlugin::class.java.classLoader.getResource("file.yml")).asFile())
m
Thank you for the explanation! That worked!
👌 1