summaryrefslogtreecommitdiff
path: root/src/main/java/net/benjidial/nswp/Waypoint.java
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2023-12-30 14:24:46 -0500
committerBenji Dial <benji@benjidial.net>2023-12-30 14:24:46 -0500
commite06ee55259b3549a59358a13c095a274bacf6a05 (patch)
treea6e8b1b33434ee2c7de7028d4abad77b7fbe8296 /src/main/java/net/benjidial/nswp/Waypoint.java
parentef65431d405a713b138a55054e78497883f27e54 (diff)
downloadnew-simple-waypoints-e06ee55259b3549a59358a13c095a274bacf6a05.tar.gz
testing new version
Diffstat (limited to 'src/main/java/net/benjidial/nswp/Waypoint.java')
-rw-r--r--src/main/java/net/benjidial/nswp/Waypoint.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/net/benjidial/nswp/Waypoint.java b/src/main/java/net/benjidial/nswp/Waypoint.java
index ec3daf6..7b3beff 100644
--- a/src/main/java/net/benjidial/nswp/Waypoint.java
+++ b/src/main/java/net/benjidial/nswp/Waypoint.java
@@ -3,6 +3,7 @@ package net.benjidial.nswp;
import org.bukkit.Location;
public class Waypoint {
+
public Waypoint(String name, Location location) {
this.name = name;
this.location = location;
@@ -10,4 +11,9 @@ public class Waypoint {
public String name;
public Location location;
+
+ public String toString() {
+ return name + " (" + location.getBlockX() + " " + location.getBlockY() + " " + location.getBlockZ() + " in " + location.getWorld().getName() + ")";
+ }
+
}