Stop using old string player lookup.

This commit is contained in:
KHobbits 2014-05-17 02:44:37 +01:00
parent 8e7abe325e
commit cbaf126a25
3 changed files with 9 additions and 8 deletions

View file

@ -40,7 +40,7 @@ public class Commandsethome extends EssentialsCommand
name = args[1].toLowerCase(Locale.ENGLISH);
if (user.isAuthorized("essentials.sethome.others"))
{
usersHome = ess.getUser(args[0]);
usersHome = getPlayer(server, args[0], true, true);
if (usersHome == null)
{
throw new PlayerNotFoundException();