You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One common internal file for plugins is the config.yml. Whenever the default config is saved, this internal file is used. What I understand from class loading, these internal files are linked with a package name and a classloader. The issue that arrives here is that when multiple plugins are loaded which share the same path for an internal file. Then currently for MockBukkit only one of these instances is possible to get whenever that internal file is fetched. So to say, one of the plugins will get the internal file from the other plugin.
One solution would be to have the plugins load from completely separate class loaders, this should isolate the resource, therefore avoiding the issue
I have no clue how to do this though. As everything is already loaded by the SystemClassLoader (or whatever it's called) to run the test, i.e. before triggering the MockBukkit#load() command.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Are you using the latest version of MockBukkit?
Minecraft Version
1.20.2
Describe the bug
One common internal file for plugins is the
config.yml
. Whenever the default config is saved, this internal file is used. What I understand from class loading, these internal files are linked with a package name and a classloader. The issue that arrives here is that when multiple plugins are loaded which share the same path for an internal file. Then currently for MockBukkit only one of these instances is possible to get whenever that internal file is fetched. So to say, one of the plugins will get the internal file from the other plugin.Reproducible Test
Anything else?
One solution would be to have the plugins load from completely separate class loaders, this should isolate the resource, therefore avoiding the issue
I have no clue how to do this though. As everything is already loaded by the SystemClassLoader (or whatever it's called) to run the test, i.e. before triggering the MockBukkit#load() command.
The text was updated successfully, but these errors were encountered: