summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-10-18 02:11:22 +0100
committerKHobbits <rob@khobbits.co.uk>2011-10-18 02:11:22 +0100
commit7c5674c2941dbb69ad666443d3d16c76efa3cdfa (patch)
tree350ce70efb93136a721e337830814fdb00fcaadb
parentf5c442aa5c6696e24e6a5fd0231f4826a2ced387 (diff)
downloadEssentials-7c5674c2941dbb69ad666443d3d16c76efa3cdfa.tar
Essentials-7c5674c2941dbb69ad666443d3d16c76efa3cdfa.tar.gz
Essentials-7c5674c2941dbb69ad666443d3d16c76efa3cdfa.tar.lz
Essentials-7c5674c2941dbb69ad666443d3d16c76efa3cdfa.tar.xz
Essentials-7c5674c2941dbb69ad666443d3d16c76efa3cdfa.zip
More debugging
-rw-r--r--Essentials/src/com/earth2me/essentials/Settings.java7
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));
}