Loading conflicts
Issue Description:
When two or more plugins use this library and share a ClassLoader
the second plugin loads the same translation files.
What happens:
https://github.com/AuraDevelopmentTeam/MessagesTranslator/blob/4492285e5b5f08d11ae0b15c3f7e5a699c64665c/src/main/java/dev/aura/lib/messagestranslator/MessagesTranslator.java#L30
resourceClass.getResource("/lang")
gets cached, meaning it returns the same folder from just one plugin twice. Causing one plugin to load the wrong files.
What you expected to happen:
Both plugins loading their respective files.
Steps to reproduce:
- Install two plugins using the library on SpongeForge server
- Start
- Check both dirs and notice that they contain the same files
Affected Versions (Do not use "latest"):
- MessagesTranslator: 1.2.0