mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-23 14:03:43 +00:00
Homes tolower.
Max homes fix.
This commit is contained in:
parent
27adc21446
commit
7df5098bf6
5 changed files with 10 additions and 8 deletions
|
@ -21,10 +21,10 @@ public class Commandsethome extends EssentialsCommand
|
|||
{
|
||||
if (user.isAuthorized("essentials.sethome.multiple"))
|
||||
{
|
||||
if ((user.isAuthorized("essentials.sethome.multiple.unlimited")) || (user.getHomes().size() <= ess.getSettings().getMultipleHomes())
|
||||
|| (user.getHomes().contains(args[0])))
|
||||
if ((user.isAuthorized("essentials.sethome.multiple.unlimited")) || (user.getHomes().size() < ess.getSettings().getMultipleHomes())
|
||||
|| (user.getHomes().contains(args[0].toLowerCase())))
|
||||
{
|
||||
user.setHome(args[0]);
|
||||
user.setHome(args[0].toLowerCase());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ public class Commandsethome extends EssentialsCommand
|
|||
{
|
||||
throw new Exception(Util.i18n("playerNotFound"));
|
||||
}
|
||||
usersHome.setHome(args[1], user.getLocation());
|
||||
usersHome.setHome(args[1].toLowerCase(), user.getLocation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue