/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/WhereisCommand.java |
Parent Directory | Revision Log | Patch
miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/WhereisCommand.java revision 1470 by torben, Wed May 18 19:08:29 2011 UTC | miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/WhereisCommand.java revision 1684 by torben, Fri Jan 27 12:21:27 2012 UTC | |
---|---|---|
# | Line 36 public class WhereisCommand implements C | Line 36 public class WhereisCommand implements C |
36 | return true; | return true; |
37 | } | } |
38 | ||
39 | Location targetLoc = target.getLocation(); | Location targetLoc = target.getLocation(); |
40 | Player player = (Player) sender; | Player player = (Player) sender; |
41 | ||
42 | if (player.getLocation().getWorld() != targetLoc.getWorld()) { | |
43 | sender.sendMessage("Whereis: player " + args[0] + " is in another world: " + targetLoc.getWorld().getName() ); | |
44 | return true; | |
45 | } | |
46 | ||
47 | int dist = calcDistance(player.getLocation(), targetLoc); | int dist = calcDistance(player.getLocation(), targetLoc); |
48 | int bearing = calcBearing(player.getLocation(), targetLoc); | int bearing = calcBearing(player.getLocation(), targetLoc); |
49 |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |