From 3cfde70ec6b361604f866dafdb4854f1c662dbcb Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 23 Jul 2013 23:39:44 +0100 Subject: Use the correct name in /sethome if you don't have sethome.others permission. --- Essentials/src/com/earth2me/essentials/commands/Commandsethome.java | 4 ++-- 1 file 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); + } } } } -- cgit v1.2.3