--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/WhereisCommand.java 2011/03/20 16:59:53 1237 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/WhereisCommand.java 2012/01/27 12:21:27 1684 @@ -36,14 +36,19 @@ return true; } - Location targetLoc = target.getLocation(); + Location targetLoc = target.getLocation(); Player player = (Player) sender; + if (player.getLocation().getWorld() != targetLoc.getWorld()) { + sender.sendMessage("Whereis: player " + args[0] + " is in another world: " + targetLoc.getWorld().getName() ); + return true; + } + int dist = calcDistance(player.getLocation(), targetLoc); int bearing = calcBearing(player.getLocation(), targetLoc); - target.sendMessage("Whereis: you are tracked by " + player.getName() ); + //target.sendMessage("Whereis: you are tracked by " + player.getName() );