Change how I grab plugin.yml from jars to fix an error with weird classloading

This commit is contained in:
libraryaddict
2020-04-17 14:08:21 +12:00
parent 00507a1194
commit 28a99d91ff
3 changed files with 19 additions and 25 deletions

View File

@@ -128,7 +128,7 @@ public class LibsPremium {
}
// Fetch the plugin.yml from the jar file
YamlConfiguration config = ReflectionManager.getPluginYAML(cl);
YamlConfiguration config = ReflectionManager.getPluginYAML(file);
// No checks for null config as the correct error will be thrown on access
Boolean premium;