Events only in a certain area

Discussion in 'Plugin Development' started by PotatoLol12321, Nov 24, 2014.

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

    PotatoLol12321

    How would i check to see if the player is a a certain area like from (x, y, z) to (x, y, z)
     
  2. Offline

    SyTeck

    Code:
    if(x >= lowestX && x <= highestX)
    Something like that but you would have to do this with the other cords aswell.
     
  3. Offline

    PotatoLol12321

    SyTeck Alright thanks for the help! :D
     
  4. Offline

    Welite

    Dont forget negative values.
     
  5. Offline

    Skionz

    PotatoLol12321 The Location.distance(Location) method returns the distance between two Locations which could be useful .
     
  6. Offline

    AronTheGamer

Thread Status:
Not open for further replies.

Share This Page