From bf82bc299506f7327a4a6cefab03c358eecaf23f Mon Sep 17 00:00:00 2001 From: Xefir Date: Wed, 9 May 2012 17:40:52 +0200 Subject: [PATCH] Print more message in case of ClassNotFound --- src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java | 2 +- src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java b/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java index 2d59a67..26ef674 100755 --- a/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java +++ b/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java @@ -251,7 +251,7 @@ public class SimplyPlugin extends JavaPlugin { try { getServer().getPluginManager().registerEvents((SimplyPrevents) Class.forName(path + ".preventions." + prevent).getDeclaredConstructor(SimplyPlugin.class).newInstance(this), this); } catch (Exception e) { - debug(e.getMessage()); + e.printStackTrace(); } } } diff --git a/src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java b/src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java index 140d9bc..a405ae2 100755 --- a/src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java +++ b/src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java @@ -13,7 +13,6 @@ public abstract class SimplyPrevents implements Listener { public static String[] preventions = { "Bow", "Changesign", - "Chat", "Command", "Damage", "Fight",