Added super pick axe and /..

This commit is contained in:
sk89q
2010-10-13 11:26:07 -07:00
parent 598f4aa6cd
commit 23b24b3615
4 changed files with 83 additions and 17 deletions

View File

@ -71,6 +71,7 @@ public class WorldEdit {
commands.put("/editpos2", "Set editing position #2");
commands.put("/editwand", "Gives you the \"edit wand\"");
commands.put("/toggleeditwand", "Toggles edit wand selection");
commands.put("/.", "Toggles super pick axe.");
commands.put("/editundo", "Undo");
commands.put("/editredo", "Redo");
commands.put("/clearhistory", "Clear history");
@ -259,6 +260,16 @@ public class WorldEdit {
}
return true;
// Toggle super pick axe
} else if (split[0].equalsIgnoreCase("/.")) {
checkArgs(split, 0, 0, split[0]);
if (session.toggleSuperPickAxe()) {
player.print("Super pick axe enabled.");
} else {
player.print("Super pick axe disabled.");
}
return true;
// Set max number of blocks to change at a time
} else if (split[0].equalsIgnoreCase("/editlimit")) {
checkArgs(split, 1, 1, split[0]);