1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

Use the correct name in /sethome if you don't have sethome.others permission.

This commit is contained in:
KHobbits
2013-07-23 23:39:44 +01:00
parent 01b84fbb8f
commit fa9320dcc1

View File

@@ -37,6 +37,7 @@ 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]);
@@ -44,7 +45,6 @@ public class Commandsethome extends EssentialsCommand
{ {
throw new PlayerNotFoundException(); throw new PlayerNotFoundException();
} }
name = args[1].toLowerCase(Locale.ENGLISH);
} }
} }
} }