Print more message in case of ClassNotFound

This commit is contained in:
Michel Roux 2012-05-09 17:40:52 +02:00
parent cf7c8146e0
commit bf82bc2995
2 changed files with 1 additions and 2 deletions

View File

@ -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();
}
}
}

View File

@ -13,7 +13,6 @@ public abstract class SimplyPrevents implements Listener {
public static String[] preventions = {
"Bow",
"Changesign",
"Chat",
"Command",
"Damage",
"Fight",