Solved Get players within a range

Discussion in 'Plugin Development' started by TheDiamond06, Jun 10, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    TheDiamond06

    My question is: How would I get player's within a certain range either in a circle or square area around the player.

    I know I would have to loop through the players on the server.
    I tried to get all the players locations on the server and subtract is from the current player's location, but that would obviously not work.

    I don't know any other way of trying, so this is why I am asking: How would I get player's within a certain range around a player either in a circle or square area.
     
  2. Offline

    I Al Istannen

  3. Offline

    caderape

  4. Offline

    CraftBang

  5. Offline

    I Al Istannen

Thread Status:
Not open for further replies.

Share This Page