mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
Use the correct name in /sethome if you don't have sethome.others permission.
This commit is contained in:
parent
f251c9e694
commit
3cfde70ec6
1 changed files with 2 additions and 2 deletions
|
@ -37,14 +37,14 @@ public class Commandsethome extends EssentialsCommand
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
name = args[1].toLowerCase(Locale.ENGLISH);
|
||||||
if (user.isAuthorized("essentials.sethome.others"))
|
if (user.isAuthorized("essentials.sethome.others"))
|
||||||
{
|
{
|
||||||
usersHome = ess.getUser(args[0]);
|
usersHome = ess.getUser(args[0]);
|
||||||
if (usersHome == null)
|
if (usersHome == null)
|
||||||
{
|
{
|
||||||
throw new PlayerNotFoundException();
|
throw new PlayerNotFoundException();
|
||||||
}
|
}
|
||||||
name = args[1].toLowerCase(Locale.ENGLISH);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue