summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-07-23 23:39:44 +0100
committerKHobbits <rob@khobbits.co.uk>2013-07-23 23:39:44 +0100
commit3cfde70ec6b361604f866dafdb4854f1c662dbcb (patch)
tree4432b8129966861f856d61d53759dc0f25833ec4
parentf251c9e694ebaa8639e7e77ecd4ab01d56a327a1 (diff)
downloadEssentials-3cfde70ec6b361604f866dafdb4854f1c662dbcb.tar
Essentials-3cfde70ec6b361604f866dafdb4854f1c662dbcb.tar.gz
Essentials-3cfde70ec6b361604f866dafdb4854f1c662dbcb.tar.lz
Essentials-3cfde70ec6b361604f866dafdb4854f1c662dbcb.tar.xz
Essentials-3cfde70ec6b361604f866dafdb4854f1c662dbcb.zip
Use the correct name in /sethome if you don't have sethome.others permission.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandsethome.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java b/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java
index e9907b515..0f0fee9ee 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java
@@ -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);
+ }
}
}
}