Skip to content

Commit

Permalink
Corrected help texts for some commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
sk89q committed Oct 18, 2010
1 parent ccab458 commit 3d413e4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/WorldEdit.java
Expand Up @@ -135,8 +135,8 @@ private WorldEdit() {
commands.put("//cut", "Cuts the currently selected region");
commands.put("//paste", "Pastes the clipboard");
commands.put("//pasteair", "Pastes the clipboard (with air)");
commands.put("//move", "[Count> [Dir] [LeaveID] - Move the selection");
commands.put("//moveair", "[Count> [Dir] [LeaveID] - Move the selection (with air)");
commands.put("//move", "<Count> <Dir> <LeaveID> - Move the selection");
commands.put("//moveair", "<Count> <Dir> <LeaveID> - Move the selection (with air)");
commands.put("//stack", "<Count> <Dir> - Stacks the selection");
commands.put("//stackair", "<Count> <Dir> - Stacks the selection (with air)");
commands.put("//load", "[Filename] - Load .schematic into clipboard");
Expand All @@ -149,8 +149,8 @@ private WorldEdit() {
commands.put("//rotate", "[Angle] - Rotate the clipboard");
commands.put("//hcyl", "[ID] [Radius] <Height> - Create a vertical hollow cylinder");
commands.put("//cyl", "[ID] [Radius] <Height> - Create a vertical cylinder");
commands.put("//sphere", "[ID] [Radius] [Raised?] - Create a sphere");
commands.put("//hsphere", "[ID] [Radius] [Raised?] - Create a hollow sphere");
commands.put("//sphere", "[ID] [Radius] <Raised?> - Create a sphere");
commands.put("//hsphere", "[ID] [Radius] <Raised?> - Create a hollow sphere");
commands.put("/fixwater", "[Radius] - Level nearby pools of water");
commands.put("/forestgen", "<Size> - Make an ugly pine tree forest");
commands.put("/unstuck", "Go up to the first free spot");
Expand Down Expand Up @@ -473,6 +473,7 @@ public boolean performCommand(WorldEditPlayer player,

// Remove blocks above current position
} else if (split[0].equalsIgnoreCase("/removeabove")) {
checkArgs(split, 0, 2, split[0]);
int size = split.length > 1 ? Math.max(1, Integer.parseInt(split[1])) : 1;
int height = split.length > 2 ? Math.min(128, Integer.parseInt(split[2]) + 2) : 128;

Expand All @@ -484,6 +485,7 @@ public boolean performCommand(WorldEditPlayer player,

// Remove blocks below current position
} else if (split[0].equalsIgnoreCase("/removebelow")) {
checkArgs(split, 0, 2, split[0]);
int size = split.length > 1 ? Math.max(1, Integer.parseInt(split[1])) : 1;
int height = split.length > 2 ? Math.max(1, Integer.parseInt(split[2])) : 128;

Expand Down

0 comments on commit 3d413e4

Please sign in to comment.