Solved Player in area

Discussion in 'Plugin Development' started by ShadowDisruptor, Oct 31, 2014.

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

    ShadowDisruptor

    I cannot seem to get if a player is in an area. What I need is:
    location1 = First corner
    location2 = Second corner
    playerloc = location to check if it's in this area

    Height can just be +10 from location1
     
  2. Offline

    Jimfutsu

  3. Offline

    Totom3

    ShadowDisruptor Check if playerloc's X is between loc1's X and loc2's X, then do the same for the Y and Z
     
  4. Offline

    ShadowDisruptor

    Totom3 I've tried that but can't seem to get it for some reason.

    Jimfutsu that's not what I'm looking for, that just sets locations, not really checks them.
     
  5. Offline

    indyetoile

    ShadowDisruptor
    Post your code here so we can see what you've done wrong.
     
  6. Offline

    Jimfutsu

    Read the comments in the code?

    if(cube.containsPlayer(p)){
    }

    That isnt what our looking for?
     
Thread Status:
Not open for further replies.

Share This Page