Fixed /locate printing the name of the wrong person.

This commit is contained in:
sk89q 2011-01-20 02:03:43 -08:00
parent 5fdd26b53f
commit 200e07023f

View File

@ -648,7 +648,7 @@ private boolean handleCommand(Player player, String cmd, String[] args)
Player target = BukkitUtil.matchSinglePlayer(getServer(), name);
if (target != null) {
player.setCompassTarget(target.getLocation());
player.sendMessage(ChatColor.YELLOW + "Compass target set to " + player.getName() + ".");
player.sendMessage(ChatColor.YELLOW + "Compass target set to " + target.getName() + ".");
} else {
player.sendMessage(ChatColor.RED + "Could not find player.");
}