Show a reloaded log when /bsb reload is used.

https://github.com/BentoBoxWorld/BSkyBlock/issues/246
This commit is contained in:
tastybento 2020-01-12 17:20:35 -08:00
parent d6b4b2525e
commit af096bf706

View File

@ -43,14 +43,16 @@ public class BSkyBlock extends GameModeAddon implements Listener {
adminCommand = new AdminCommand(this);
}
private void loadSettings() {
private boolean loadSettings() {
// Load settings again to get worlds
settings = configObject.loadConfigObject();
if (settings == null) {
// Disable
logError("BSkyBlock settings could not load! Addon disabled.");
setState(State.DISABLED);
return false;
}
return true;
}
@Override
@ -66,7 +68,9 @@ public class BSkyBlock extends GameModeAddon implements Listener {
@Override
public void onReload() {
loadSettings();
if (loadSettings()) {
log("Reloaded BSkyBlock settings");
}
}
/**