geforkt von Mirrors/FastAsyncWorldEdit
Add convex to the @Command usage info for //sel.
Dieser Commit ist enthalten in:
Ursprung
d4a7f7b48a
Commit
63f2f96a8c
@ -599,12 +599,12 @@ public class SelectionCommands {
|
|||||||
CuboidClipboard clipboard = session.getClipboard();
|
CuboidClipboard clipboard = session.getClipboard();
|
||||||
Vector size = clipboard.getSize();
|
Vector size = clipboard.getSize();
|
||||||
Vector offset = clipboard.getOffset();
|
Vector offset = clipboard.getOffset();
|
||||||
|
|
||||||
player.print("Size: " + size);
|
player.print("Size: " + size);
|
||||||
player.print("Offset: " + offset);
|
player.print("Offset: " + offset);
|
||||||
player.print("Cuboid distance: " + size.distance(Vector.ONE));
|
player.print("Cuboid distance: " + size.distance(Vector.ONE));
|
||||||
player.print("# of blocks: "
|
player.print("# of blocks: "
|
||||||
+ (int) (size.getX() * size.getY() * size.getZ()));
|
+ (int) (size.getX() * size.getY() * size.getZ()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -624,7 +624,7 @@ public class SelectionCommands {
|
|||||||
player.print("Size: " + size);
|
player.print("Size: " + size);
|
||||||
player.print("Cuboid distance: " + region.getMaximumPoint()
|
player.print("Cuboid distance: " + region.getMaximumPoint()
|
||||||
.distance(region.getMinimumPoint()));
|
.distance(region.getMinimumPoint()));
|
||||||
player.print("# of blocks: " + region.getArea());
|
player.print("# of blocks: " + region.getArea());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -658,16 +658,16 @@ public class SelectionCommands {
|
|||||||
@Command(
|
@Command(
|
||||||
aliases = { "/distr" },
|
aliases = { "/distr" },
|
||||||
usage = "",
|
usage = "",
|
||||||
desc = "Get the distribution of blocks in the selection",
|
desc = "Get the distribution of blocks in the selection",
|
||||||
help =
|
help =
|
||||||
"Gets the distribution of blocks in the selection.\n" +
|
"Gets the distribution of blocks in the selection.\n" +
|
||||||
"The -c flag gets the distribution of your clipboard.\n" +
|
"The -c flag gets the distribution of your clipboard.\n" +
|
||||||
"The -d flag separates blocks by data",
|
"The -d flag separates blocks by data",
|
||||||
flags = "cd",
|
flags = "cd",
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 0
|
max = 0
|
||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.analysis.distr")
|
@CommandPermissions("worldedit.analysis.distr")
|
||||||
public void distr(CommandContext args, LocalSession session, LocalPlayer player,
|
public void distr(CommandContext args, LocalSession session, LocalPlayer player,
|
||||||
EditSession editSession) throws WorldEditException {
|
EditSession editSession) throws WorldEditException {
|
||||||
|
|
||||||
@ -725,7 +725,7 @@ public class SelectionCommands {
|
|||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
aliases = { "/sel", ";" },
|
aliases = { "/sel", ";" },
|
||||||
usage = "[cuboid|extend|poly|ellipsoid|sphere|cyl]",
|
usage = "[cuboid|extend|poly|ellipsoid|sphere|cyl|convex]",
|
||||||
desc = "Choose a region selector",
|
desc = "Choose a region selector",
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 1
|
max = 1
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren