1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-01 16:46:51 +02:00

Patch null error in /home after recent update.

This commit is contained in:
KHobbits
2012-05-22 00:39:23 +01:00
parent e4e1c950b5
commit b841878a33
2 changed files with 12 additions and 11 deletions

View File

@@ -277,14 +277,9 @@ public class Teleport implements Runnable, ITeleport
{
now(new Target(user.getLastLocation()), TeleportCause.COMMAND);
}
public void home(IUser user, String home, Trade chargeFor) throws Exception
public void home(Location loc, Trade chargeFor) throws Exception
{
final Location loc = user.getHome(home);
if (loc == null)
{
throw new NotEnoughArgumentsException();
}
teleport(new Target(loc), chargeFor, TeleportCause.COMMAND);
}
}