diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-10-18 02:11:22 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-10-18 02:11:22 +0100 |
commit | f0f479f1159f9961642e78dd64073e116e617436 (patch) | |
tree | d8777d9d1dcc01b6956a702b40350f903a80e3c3 | |
parent | e58813d028c4950064856f52ea62f1f00fc9b6be (diff) | |
download | Essentials-f0f479f1159f9961642e78dd64073e116e617436.tar Essentials-f0f479f1159f9961642e78dd64073e116e617436.tar.gz Essentials-f0f479f1159f9961642e78dd64073e116e617436.tar.lz Essentials-f0f479f1159f9961642e78dd64073e116e617436.tar.xz Essentials-f0f479f1159f9961642e78dd64073e116e617436.zip |
More debugging
-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)); } |