summaryrefslogtreecommitdiff
path: root/src/main/java/net/benjidial/nswp/Waypoint.java
blob: 7b3beff1eb76dacc860d75c8d608ad53008d1bf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package net.benjidial.nswp;

import org.bukkit.Location;

public class Waypoint {

  public Waypoint(String name, Location location) {
    this.name = name;
    this.location = location;
  }

  public String name;
  public Location location;

  public String toString() {
    return name + " (" + location.getBlockX() + " " + location.getBlockY() + " " + location.getBlockZ() + " in " + location.getWorld().getName() + ")";
  }

}