1 |
package dk.thoerup.bukkit.hoeruputils; |
package dk.thoerup.bukkit.hoeruputils; |
2 |
|
|
3 |
|
import org.bukkit.ChatColor; |
4 |
import org.bukkit.Location; |
import org.bukkit.Location; |
5 |
import org.bukkit.Server; |
import org.bukkit.Server; |
6 |
import org.bukkit.command.Command; |
import org.bukkit.command.Command; |
45 |
|
|
46 |
target.sendMessage("Whereis: you are tracked by " + player.getName() ); |
target.sendMessage("Whereis: you are tracked by " + player.getName() ); |
47 |
|
|
48 |
player.sendMessage("Whereis: " + target.getName() + " is at " + (int)targetLoc.getX() + "," + (int)targetLoc.getY() + "," +(int)targetLoc.getZ() ); |
|
49 |
player.sendMessage("Distance: " + dist + ", bearing: " + bearing + "(" + getBearingStr(bearing) + ")" ); |
|
50 |
|
player.sendMessage( ChatColor.WHITE + String.format("Whereis: %s is at %d,%d,%d", target.getName(), (int)targetLoc.getX(), (int)targetLoc.getY(), (int)targetLoc.getZ()) ); |
51 |
|
player.sendMessage( ChatColor.WHITE + "Distance: " + dist + ", bearing: " + bearing + "(" + getBearingStr(bearing) + ")" ); |
52 |
|
|
53 |
return true; |
return true; |
54 |
} |
} |