From 0d32acfe0b05ab319875dc504c590c417f554bc7 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 5 Jan 2011 07:50:57 -0800 Subject: [PATCH] Fixed some errors with /tpback --- vMinecraftCommands.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vMinecraftCommands.java b/vMinecraftCommands.java index 882975b59..8777b5f29 100644 --- a/vMinecraftCommands.java +++ b/vMinecraftCommands.java @@ -1267,7 +1267,7 @@ private static HashMap hidden = new HashMap(); //If the target exists, teleport them to the user else { log.log(Level.INFO, player.getName() + " teleported " - + player.getName() + " to their self."); + + playerTarget.getName() + " to their self."); playerTarget.teleportTo(player); double x = player.getLocation().x; double y = player.getLocation().y; @@ -1279,8 +1279,8 @@ private static HashMap hidden = new HashMap(); vMinecraftUsers.getProfile(playerTarget).setTpback(xyz); if(playerTarget.canUseCommand("/tpback")) { - player.sendMessage(Colors.DarkPurple + "Your previous location has been stored"); - player.sendMessage(Colors.DarkPurple + "Use /tpback to return"); + playerTarget.sendMessage(Colors.DarkPurple + "Your previous location has been stored"); + playerTarget.sendMessage(Colors.DarkPurple + "Use /tpback to return"); } } return EXIT_SUCCESS;