所有异常都要好好的抓起来呢

This commit is contained in:
Izzel_Aliz 2018-06-24 10:04:56 +08:00
parent 3c2d87889e
commit 95298f3e73

View File

@ -99,7 +99,7 @@ public class TLib {
field.setAccessible(true);
field.set(Bukkit.getServer(), new TPluginManager());
TLocale.Logger.info("TLIB.INJECTION-SUCCESS");
} catch (NoSuchFieldException | IllegalAccessException ignored) {
} catch (NoSuchFieldException | IllegalAccessException | IllegalArgumentException ignored) {
TLocale.Logger.fatal("TLIB.INJECTION-FAILED");
for (Plugin plugin : Bukkit.getPluginManager().getPlugins()) {
if (plugin != Main.getInst()) TDependencyInjector.inject(plugin, plugin);