diff --git a/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java b/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java index 38183269b..3cf31b0e8 100644 --- a/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java +++ b/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java @@ -60,6 +60,19 @@ public final class UncheckedWorldLocation extends Location { return new UncheckedWorldLocation(world, x, y, z); } + /** + * Construct a new location with yaw and pitch equal to 0 + * + * @param world World + * @param loc Coordinates + * @return New location + * @since 6.9.0 + */ + @DoNotUse + public static @NonNull UncheckedWorldLocation at(final @NonNull String world, BlockVector3 loc) { + return new UncheckedWorldLocation(world, loc.getX(), loc.getY(), loc.getZ()); + } + @Override @DoNotUse public @NonNull String getWorldName() {