Forgot to push Essentials spawn changes.

This commit is contained in:
KHobbits 2013-05-24 00:10:39 +01:00
parent 66911bb0a9
commit 35783ee429

View File

@ -27,7 +27,7 @@ public class Commandspawn extends EssentialsCommand
charge.isAffordableFor(user);
if (args.length > 0 && user.isAuthorized("essentials.spawn.others"))
{
final User otherUser = getPlayer(server, args, 0);
final User otherUser = getPlayer(server, user, args, 0);
respawn(otherUser, charge);
if (!otherUser.equals(user))
{
@ -49,7 +49,7 @@ public class Commandspawn extends EssentialsCommand
{
throw new NotEnoughArgumentsException();
}
final User user = getPlayer(server, args, 0);
final User user = getPlayer(server, args, 0, true, false);
respawn(user, null);
user.sendMessage(_("teleportAtoB", Console.NAME, "spawn"));
sender.sendMessage(_("teleporting"));