Hi,
I’m currently trying to retrieve my resources files when my plugin is loaded, but I can’t find them. I tried with the ClassLoader and the AssetManager.
Does someone has an example?
Hi,
I’m currently trying to retrieve my resources files when my plugin is loaded, but I can’t find them. I tried with the ClassLoader and the AssetManager.
Does someone has an example?
Actual code would be helpful. Meanwhile, the correct way is for the file to be in assets/{plugin id}
. So if I have assets/splish/default.conf
, then to retrieve it (from the main class) I’d do game.getAssetManager().getAsset(this, "default.conf").get().copyToFile(configPath);
Thank you, my files where at the root of the resources folder. I moved them to assets/permissionmanager
and it worked.