From f362f09380f862f2c2c07d4f45168e49cfc0167d Mon Sep 17 00:00:00 2001 From: benwoo1110 <30431861+benwoo1110@users.noreply.github.com> Date: Sun, 21 Feb 2021 17:19:18 +0800 Subject: [PATCH] Add support for fullname face direction. So we can do `w:world:north` on top of the current ``w:world:n`. --- .../MultiverseCore/utils/SimpleLocationManipulation.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/SimpleLocationManipulation.java b/src/main/java/com/onarandombox/MultiverseCore/utils/SimpleLocationManipulation.java index 17f770e1..92767d63 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/SimpleLocationManipulation.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/SimpleLocationManipulation.java @@ -40,6 +40,15 @@ public class SimpleLocationManipulation implements LocationManipulation { orientationInts.put("w", 90); orientationInts.put("nw", 135); + orientationInts.put("north", 180); + orientationInts.put("northeast", 225); + orientationInts.put("east", 270); + orientationInts.put("southeast", 315); + orientationInts.put("south", 0); + orientationInts.put("southwest", 45); + orientationInts.put("west", 90); + orientationInts.put("northwest", 135); + // "freeze" the map: ORIENTATION_INTS = Collections.unmodifiableMap(orientationInts); // END CHECKSTYLE-SUPPRESSION: MagicNumberCheck