From e06ee55259b3549a59358a13c095a274bacf6a05 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 30 Dec 2023 14:24:46 -0500 Subject: testing new version --- src/main/java/net/benjidial/nswp/Waypoint.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/net/benjidial/nswp/Waypoint.java') 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() + ")"; + } + } -- cgit v1.2.3