Revert "Update home count..." This reverts commit 9b731cc39c.

On second thought, this would just lead to inconsistency....
This commit is contained in:
KHobbits 2012-05-07 00:16:45 +01:00
parent deca5e5e73
commit 8d6b864b5b
2 changed files with 1 additions and 13 deletions

View file

@ -33,7 +33,7 @@ public class Commandsethome extends EssentialsCommand
{
throw new NotEnoughArgumentsException();
}
if ((user.isAuthorized("essentials.sethome.multiple.unlimited")) || (user.getHomeCount() < ess.getSettings().getHomeLimit(user))
if ((user.isAuthorized("essentials.sethome.multiple.unlimited")) || (user.getHomes().size() < ess.getSettings().getHomeLimit(user))
|| (user.getHomes().contains(args[0].toLowerCase(Locale.ENGLISH))))
{
user.setHome(args[0].toLowerCase(Locale.ENGLISH));