diff options
author | Chris Ward <chris@chrisgward.com> | 2013-01-08 22:57:48 +1100 |
---|---|---|
committer | Chris Ward <chris@chrisgward.com> | 2013-01-08 22:57:48 +1100 |
commit | 02a0fb4f81d73b78a50e0288ce881a79666984da (patch) | |
tree | cb9587f80d63009ed86d8173d0f7c8dc73cc9cac | |
parent | d328dcd90127afc67a9884fa5ab4bbfb487561a0 (diff) | |
download | Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.tar Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.tar.gz Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.tar.lz Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.tar.xz Essentials-02a0fb4f81d73b78a50e0288ce881a79666984da.zip |
Fix deprecation nag exception
-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) |