|
@@ -1860,6 +1860,17 @@ public class MinecraftFunctions
|
|
|
}
|
|
|
return plots.getIterator(word);
|
|
|
});
|
|
|
+ sm.registerFunction("plot.intersecting", (sc, in) ->
|
|
|
+ plots.getIntersectingPlots((IWorld) in[0].get(sc), in[1].getInt(sc),
|
|
|
+ in[2].getInt(sc), in[3].getInt(sc), in[4].getInt(sc),
|
|
|
+ in[5].getInt(sc), in[6].getInt(sc)));
|
|
|
+
|
|
|
+ sm.registerFunction("plot.getminx", (sc, in) -> (double) ((Plot) in[0].get(sc)).getMinX());
|
|
|
+ sm.registerFunction("plot.getminy", (sc, in) -> (double) ((Plot) in[0].get(sc)).getMinY());
|
|
|
+ sm.registerFunction("plot.getminz", (sc, in) -> (double) ((Plot) in[0].get(sc)).getMinZ());
|
|
|
+ sm.registerFunction("plot.getmaxx", (sc, in) -> (double) ((Plot) in[0].get(sc)).getMaxX());
|
|
|
+ sm.registerFunction("plot.getmaxy", (sc, in) -> (double) ((Plot) in[0].get(sc)).getMaxY());
|
|
|
+ sm.registerFunction("plot.getmaxz", (sc, in) -> (double) ((Plot) in[0].get(sc)).getMaxZ());
|
|
|
|
|
|
|
|
|
|