Archiviert
13
0

Capture errors in plugins onLoad

Dieser Commit ist enthalten in:
Dinnerbone 2011-03-31 22:33:06 +01:00
Ursprung baa8c53be0
Commit eb422e4ad4

Datei anzeigen

@ -64,8 +64,8 @@ public final class CraftServer implements Server {
for (Plugin plugin : plugins) { for (Plugin plugin : plugins) {
try { try {
plugin.onLoad(); plugin.onLoad();
} catch (AbstractMethodError ame) { } catch (Throwable ex) {
Logger.getLogger("Minecraft").warning("Plugin: " + plugin.getDescription().getName() + " does not support the onLoad() method"); Logger.getLogger(CraftServer.class.getName()).log(Level.SEVERE, ex.getMessage() + " initializing " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
} }
} }
for (Plugin plugin : plugins) { for (Plugin plugin : plugins) {