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 ScriptingCommands {
@Command(
aliases = {"/cs"},
aliases = {"cs"},
usage = "<filename> [args...]",
desc = "Execute a CraftScript",
min = 1,
@@ -50,7 +50,7 @@ public class ScriptingCommands {
}
@Command(
aliases = {"/.s"},
aliases = {".s"},
usage = "[args...]",
desc = "Execute last CraftScript",
min = 0,