mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 20:41:37 +02:00
Fix deprecation nag exception
This commit is contained in:
@@ -426,7 +426,14 @@ public class BukkitConstructor extends Constructor
|
||||
}
|
||||
else
|
||||
{
|
||||
clazz = plugin.getClassByName(name);
|
||||
try // TODO Is there a better way to to this?
|
||||
{
|
||||
clazz = plugin.getClass().getClassLoader().loadClass(name);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
clazz = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (clazz == null)
|
||||
|
Reference in New Issue
Block a user