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 {
|
try {
|
||||||
getServer().getPluginManager().registerEvents((SimplyPrevents) Class.forName(path + ".preventions." + prevent).getDeclaredConstructor(SimplyPlugin.class).newInstance(this), this);
|
getServer().getPluginManager().registerEvents((SimplyPrevents) Class.forName(path + ".preventions." + prevent).getDeclaredConstructor(SimplyPlugin.class).newInstance(this), this);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
debug(e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,6 @@ public abstract class SimplyPrevents implements Listener {
|
|||||||
public static String[] preventions = {
|
public static String[] preventions = {
|
||||||
"Bow",
|
"Bow",
|
||||||
"Changesign",
|
"Changesign",
|
||||||
"Chat",
|
|
||||||
"Command",
|
"Command",
|
||||||
"Damage",
|
"Damage",
|
||||||
"Fight",
|
"Fight",
|
||||||
|
Loading…
Reference in New Issue
Block a user