[WIP] Mypos - Programming help needed

Discussion in 'WIP and Development Status' started by creeperdude12321, Aug 13, 2013.

Thread Status:
Not open for further replies.
  1. I'm making a plugin which tells your and other players coordinates, I got a problem with other players support, here's what I got for telling other players coordinates:

    if(commandLabel.equalsIgnoreCase("getpos")){
    if (args.length != 1){
    player.sendMessage("Correct use: /getpos <player>");}
    else{
    Player targetplayer = player.getServer().getPlayer(args[0]);
    Location targetlocation = targetplayer.getLocation();
    player.sendMessage(ChatColor.GOLD + args[0] + "'s Coordinates Are: " + ChatColor.AQUA + "X: " + Math.round(targetlocation.getBlockX()) + " Y: " + Math.round(targetlocation.getBlockY()) + " Z: " + Math.round(targetlocation.getBlockZ()));
    }
     
  2. creeperdude12321
    So your asking for another developer to help you? Or help with your code?
     
Thread Status:
Not open for further replies.

Share This Page