diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Settings.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java index dba852b26..00e973dcf 100644 --- a/Essentials/src/com/earth2me/essentials/Settings.java +++ b/Essentials/src/com/earth2me/essentials/Settings.java @@ -57,10 +57,12 @@ public class Settings implements ISettings for (String set : homeList) { logger.log(Level.INFO, "Found home set: " + set); - if (user.hasPermission("essentials.sethome.multiple." + set) && limit < getHomeLimit(set)) + if (user.hasPermission("essentials.sethome.multiple." + set)) { logger.log(Level.INFO, "Found permission for set: " + set); - limit = getHomeLimit(set); + if (limit < getHomeLimit(set)) { + limit = getHomeLimit(set); + } } } return limit; @@ -69,6 +71,7 @@ public class Settings implements ISettings @Override public int getHomeLimit(final String set) { + logger.log(Level.INFO, "Checking limit for: " + set); return config.getInt("sethome-multiple." + set, config.getInt("sethome-multiple.default", 3)); } |