diff options
-rw-r--r-- | Essentials/src/net/ess3/storage/BukkitConstructor.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Essentials/src/net/ess3/storage/BukkitConstructor.java b/Essentials/src/net/ess3/storage/BukkitConstructor.java index 32bf5fc76..819fe4b81 100644 --- a/Essentials/src/net/ess3/storage/BukkitConstructor.java +++ b/Essentials/src/net/ess3/storage/BukkitConstructor.java @@ -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) |