From 6c57baa3b83295aecd45191bb297912cbdd8e4a1 Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Mon, 12 Oct 2020 18:28:39 -0700 Subject: [PATCH] add cuboidtag.world --- .../com/denizenscript/denizen/objects/CuboidTag.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/CuboidTag.java b/plugin/src/main/java/com/denizenscript/denizen/objects/CuboidTag.java index aba6984322..cef5b95a2a 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/CuboidTag.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/CuboidTag.java @@ -1152,6 +1152,16 @@ public static void registerTags() { } }); + // <--[tag] + // @attribute + // @returns WorldTag + // @description + // Returns the cuboid's world. + // --> + registerTag("world", (attribute, cuboid) -> { + return new WorldTag(cuboid.pairs.get(0).low.getWorld()); + }); + // <--[tag] // @attribute // @returns LocationTag