Added command flag support, removed / prefix from command handling process.

This commit is contained in:
sk89q
2011-01-29 11:36:28 -08:00
parent d1ff0250aa
commit 059f30808d
16 changed files with 140 additions and 86 deletions

View File

@@ -30,7 +30,7 @@ import com.sk89q.worldedit.*;
*/
public class HistoryCommands {
@Command(
aliases = {"//undo"},
aliases = {"/undo"},
usage = "",
desc = "Undoes the last action",
min = 0,
@@ -51,7 +51,7 @@ public class HistoryCommands {
}
@Command(
aliases = {"//redo"},
aliases = {"/redo"},
usage = "",
desc = "Redoes the last action (from history)",
min = 0,
@@ -72,7 +72,7 @@ public class HistoryCommands {
}
@Command(
aliases = {"/clearhistory"},
aliases = {"clearhistory"},
usage = "",
desc = "Clear your history",
min = 0,