--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/WhereisCommand.java 2011/05/27 11:33:40 1483 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/WhereisCommand.java 2011/05/28 13:35:23 1484 @@ -36,9 +36,14 @@ 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);