mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-16 23:55:23 +01:00
Fixed /locate printing the name of the wrong person.
This commit is contained in:
parent
5fdd26b53f
commit
200e07023f
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user