Print more message in case of ClassNotFound
This commit is contained in:
parent
cf7c8146e0
commit
bf82bc2995
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ public abstract class SimplyPrevents implements Listener {
|
||||
public static String[] preventions = {
|
||||
"Bow",
|
||||
"Changesign",
|
||||
"Chat",
|
||||
"Command",
|
||||
"Damage",
|
||||
"Fight",
|
||||
|
Loading…
Reference in New Issue
Block a user