summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-05-24 00:10:39 +0100
committerKHobbits <rob@khobbits.co.uk>2013-05-24 00:10:39 +0100
commitbf2e2d45176c541e2edffe1b4ea880c1fc3a19a2 (patch)
tree9d8fcd15cd295b7c5ccc60f4039ddae1e56615dc /EssentialsSpawn
parent663031349b0b7ca671fe48492798736dc9ba2194 (diff)
downloadEssentials-bf2e2d45176c541e2edffe1b4ea880c1fc3a19a2.tar
Essentials-bf2e2d45176c541e2edffe1b4ea880c1fc3a19a2.tar.gz
Essentials-bf2e2d45176c541e2edffe1b4ea880c1fc3a19a2.tar.lz
Essentials-bf2e2d45176c541e2edffe1b4ea880c1fc3a19a2.tar.xz
Essentials-bf2e2d45176c541e2edffe1b4ea880c1fc3a19a2.zip
Forgot to push Essentials spawn changes.
Diffstat (limited to 'EssentialsSpawn')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java
index be34d39bd..b59f0a0fe 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java
@@ -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"));