From fa9320dcc1c77033fc5e7b2998b3dadfac870cb7 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 23 Jul 2013 23:39:44 +0100 Subject: [PATCH] Use the correct name in /sethome if you don't have sethome.others permission. --- .../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); + } } } }