1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-01-18 13:56:29 +01:00

More debugging

This commit is contained in:
KHobbits 2011-10-18 02:11:22 +01:00
parent e58813d028
commit f0f479f115

View File

@ -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));
}