mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-30 04:02:04 +01:00
Fix Bungee identifyClassLoader method (again)
This commit is contained in:
parent
d449834767
commit
d136359cd9
@ -281,6 +281,8 @@ public class LPBungeeBootstrap extends Plugin implements LuckPermsBootstrap {
|
||||
Class<?> pluginClassLoader = Class.forName("net.md_5.bungee.api.plugin.PluginClassloader");
|
||||
if (pluginClassLoader.isInstance(classLoader)) {
|
||||
Field descriptionField = pluginClassLoader.getDeclaredField("desc");
|
||||
descriptionField.setAccessible(true);
|
||||
|
||||
PluginDescription desc = (PluginDescription) descriptionField.get(classLoader);
|
||||
return desc.getName();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user