Added /undo and /redo as aliases.

This commit is contained in:
sk89q 2011-02-18 21:21:07 -08:00
parent 7088fadab8
commit 5642f95962
2 changed files with 4 additions and 2 deletions

View File

@ -81,9 +81,11 @@ commands:
/redo: /redo:
description: Redoes the last action (from history) description: Redoes the last action (from history)
usage: /<command> [times] usage: /<command> [times]
aliases: ['redo']
/undo: /undo:
description: Undoes the last action description: Undoes the last action
usage: /<command> [times] usage: /<command> [times]
aliases: ['undo']
unstuck: unstuck:
description: Escape from being stuck inside a block description: Escape from being stuck inside a block
usage: /<command> usage: /<command>

View File

@ -31,7 +31,7 @@ import com.sk89q.worldedit.*;
*/ */
public class HistoryCommands { public class HistoryCommands {
@Command( @Command(
aliases = {"/undo"}, aliases = {"/undo", "undo"},
usage = "[times]", usage = "[times]",
desc = "Undoes the last action", desc = "Undoes the last action",
min = 0, min = 0,
@ -57,7 +57,7 @@ public class HistoryCommands {
} }
@Command( @Command(
aliases = {"/redo"}, aliases = {"/redo", "redo"},
usage = "[times]", usage = "[times]",
desc = "Redoes the last action (from history)", desc = "Redoes the last action (from history)",
min = 0, min = 0,