How can I get Asset file in sponge 8.0?

In sponge 7.0 I can get asset file by using this code.

PluginContainer.getAsset(path).get();
then I can use the method .copyToFile(pluginFolderPath) to copy to my plugin path

but In sponge 8.0 I couldn’t fild the method to get asset file.

I want to get and save the asset file into my plugin folder. e.g. item.conf

How can I get & save the asset file in sponge 8.0 ?

Please help me.

I’ve solved it already!

Hello, would you mind share how you solved this? I’m trying to figure it out too, maybe with your help we can even submit a PR to the docs to that gets updated as well :slight_smile: