You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/skriptlang/skriptworldguard/elements/effects/EffCreateRegion.java
+41-16Lines changed: 41 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,8 @@
38
38
" At least three points must be provided to create a polygonal region.",
39
39
"Note that if you do not specify the world for a region, you must be sure that the locations provided all have the same world.",
40
40
"Note that Region IDs are only valid if they contain letters, numbers, underscores, commas, single quotation marks, dashes, pluses, and forward slashes.",
41
-
"Note that if you attempt to create a region in a world where a region with the same ID already exists, that region will be replaced."
41
+
"Note that if you attempt to create a region in a world where a region with the same ID already exists, that region will be replaced.",
42
+
"Note that if you do not specify the minimum and maximum heights for a polygonal region, those values will be calculated from the points."
42
43
})
43
44
@Example("create a temporary global region named \"temporary_global_region\" in the player's world")
44
45
@Example("create region \"cuboid_region\" in player's world between the location (0, 60, 0) and the location (10, 70, 10)")
@@ -51,7 +52,7 @@ public static void register(SyntaxRegistry registry) {
51
52
.supplier(EffCreateRegion::new)
52
53
.addPatterns("create [a] [:temporary] global [worldguard] region [named] %string% [in %world%]",
"create [a] [:temporary] polygonal [worldguard] region [named] %string% [in %-world%] with [a] min[imum] height of %number% and [a] max[imum] height of %number% with [the] points %locations%")
55
+
"create [a] [:temporary] polygonal [worldguard] region [named] %string% [in %-world%] [with [a] min[imum] height of %-integer% and [a] max[imum] height of %-integer%] with [the] points %locations%")
55
56
.build());
56
57
}
57
58
@@ -63,8 +64,8 @@ public static void register(SyntaxRegistry registry) {
0 commit comments