How to Find Distance From One Location to Another

Discussion in 'Plugin Development' started by qsysmine, Nov 26, 2013.

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

    qsysmine

    I am developing an AT&T plugin, and I need to know how to determine if a player is less than 64 blocks away from a certain location.
     
  2. Offline

    HyrulesLegend

    AT&T? Why not charter. [cake]
     
  3. Offline

    Mmarz11

  4. Offline

    LazyLemons

    I can't tell if you're poking fun at ATT's garbage coverage or if you're being serious, but either way
    Code:java
    1. public boolean isWithin(int radius, Player p, Location loc){
    2. return p.getLocation().distance(loc) <= radius;
    3. }
     
  5. Offline

    Gater12

    qsysmine Pffbbbtttt Gater12's Mobile Network (GMN) has the best coverage.
     
  6. Offline

    calebbfmv

    I love the off topic ness that we go into. always make me laugh :)
     
  7. Offline

    qsysmine

    Thanks, that's what I needed. I'm poking fun at AT&T's garbage service, and I might include a poopy customer service line.:)
     
Thread Status:
Not open for further replies.

Share This Page