Closed EpiCanard closed 4 years ago
Thank you! I don't have much time to fix this right now, it'll be be somewhere after tuesday. If you manage to write a PR in the meantime I'll have a look and merge if it's good.
I don't know enough your plugin to fix this mysterious bug otherwise I would not open this issue. :) I'm not in a hurry, take all the time you need.
Thanks a lot for this fix :)
Plugin version: 0.11.1 Issue type: Bug
Description: When you use
saveResource
orgetResource
, the Plugin and ScalaLoader resources are shared. If I trysaveResource("config.yml")
orsaveConfig()
it will save inside Plugin folder the config of ScalaLoader.You can more explicitly see this issue by using
getClassLoader.getResources()
, it will give you an Enumeration with path of ScalaLoader config and Plugin config.I can use a "temporary" fix by using
getClassLoader.findResources()
and recreate myself thesaveResource
method. But it will be great if Plugin can only access its resources or if its resources can be saved first.Thanks for your answer