mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-10 18:38:18 +01:00
Use the correct name in /sethome if you don't have sethome.others permission.
This commit is contained in:
parent
f251c9e694
commit
3cfde70ec6
@ -37,14 +37,14 @@ public class Commandsethome extends EssentialsCommand
|
||||
}
|
||||
else
|
||||
{
|
||||
name = args[1].toLowerCase(Locale.ENGLISH);
|
||||
if (user.isAuthorized("essentials.sethome.others"))
|
||||
{
|
||||
usersHome = ess.getUser(args[0]);
|
||||
if (usersHome == null)
|
||||
{
|
||||
throw new PlayerNotFoundException();
|
||||
}
|
||||
name = args[1].toLowerCase(Locale.ENGLISH);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user