1
0
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:
Chris Ward
2013-01-08 22:57:48 +11:00
parent d328dcd901
commit 02a0fb4f81

View File

@@ -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)