3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Catch throwables when loading plugins (#1098)

Dieser Commit ist enthalten in:
Joo200 2023-10-11 17:24:35 +02:00 committet von GitHub
Ursprung 2bd2c692ea
Commit 9be0bca3c4
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -94,7 +94,7 @@ public class VelocityPluginManager implements PluginManager {
for (Path path : stream) {
try {
found.add(loader.loadCandidate(path));
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Unable to load plugin {}", path, e);
}
}
@ -126,7 +126,7 @@ public class VelocityPluginManager implements PluginManager {
VelocityPluginContainer container = new VelocityPluginContainer(realPlugin);
pluginContainers.put(container, loader.createModule(container));
loadedPluginsById.add(realPlugin.getId());
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Can't create module for plugin {}", candidate.getId(), e);
}
}
@ -153,7 +153,7 @@ public class VelocityPluginManager implements PluginManager {
try {
loader.createPlugin(container, plugin.getValue(), commonModule);
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Can't create plugin {}", description.getId(), e);
continue;
}