From af096bf7064dec401048da5b52ed1b4c17336559 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 12 Jan 2020 17:20:35 -0800 Subject: [PATCH] Show a reloaded log when /bsb reload is used. https://github.com/BentoBoxWorld/BSkyBlock/issues/246 --- src/main/java/world/bentobox/bskyblock/BSkyBlock.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/bskyblock/BSkyBlock.java b/src/main/java/world/bentobox/bskyblock/BSkyBlock.java index 4c7061c..2ca0430 100644 --- a/src/main/java/world/bentobox/bskyblock/BSkyBlock.java +++ b/src/main/java/world/bentobox/bskyblock/BSkyBlock.java @@ -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"); + } } /**