Skip to content

Commit 477d245

Browse files
committed
log enabled and disabled addons
1 parent d6d0850 commit 477d245

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/me/hsgamer/bettergui/manager/AddonManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public List<String> getSoftDependencies(ExpansionClassLoader loader) {
3939
checkPluginDepends(loader);
4040
} else if (state == ExpansionState.ERROR) {
4141
plugin.getLogger().log(Level.WARNING, "There is an error when loading an addon: " + loader.getDescription().getName(), loader.getThrowable());
42+
} else if (state == ExpansionState.ENABLED) {
43+
plugin.getLogger().log(Level.INFO, "Enabled " + loader.getDescription().getName() + " " + loader.getDescription().getVersion());
44+
} else if (state == ExpansionState.DISABLED) {
45+
plugin.getLogger().log(Level.INFO, "Disabled " + loader.getDescription().getName() + " " + loader.getDescription().getVersion());
4246
}
4347
});
4448
setExceptionHandler(throwable -> plugin.getLogger().log(Level.SEVERE, "There is an error when handling an addon", throwable));

0 commit comments

Comments
 (0)