所有异常都要好好的抓起来呢
This commit is contained in:
parent
3c2d87889e
commit
95298f3e73
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user