Changed /s to /.s to avoid conflicts.

This commit is contained in:
sk89q 2011-01-26 12:34:40 -08:00
parent e8cd150860
commit 4c2faf175b
2 changed files with 3 additions and 3 deletions

View File

@ -250,7 +250,7 @@ commands:
cs:
description: Execute a CraftScript
usage: /<command> <filename> [arg1 [args2 [arg3 [...]]]]
s:
.s:
description: Re-execute last CraftScript
usage: /<command> [arg1 [args2 [arg3 [...]]]]

View File

@ -179,7 +179,7 @@ public class WorldEdit {
commands.put("/rbrush", "[ID] <Radius> - Switch to the replacing sphere brush tool");
commands.put("/cs", "[Filename] <args...> - Execute a CraftScript");
commands.put("/s", "<args...> - Re-execute last CraftScript");
commands.put("/.s", "<args...> - Re-execute last CraftScript");
}
/**
@ -1746,7 +1746,7 @@ public class WorldEdit {
return true;
// CraftScript
} else if (split[0].equalsIgnoreCase("/s")) {
} else if (split[0].equalsIgnoreCase("/.s")) {
checkArgs(split, 1, -1, split[0]);
String lastScript = session.getLastScript();