mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2024-11-14 10:25:32 +01:00
Show a reloaded log when /bsb reload is used.
https://github.com/BentoBoxWorld/BSkyBlock/issues/246
This commit is contained in:
parent
d6b4b2525e
commit
af096bf706
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user