Changed /s to /.s to avoid conflicts.

Dieser Commit ist enthalten in:
sk89q 2011-01-26 12:34:40 -08:00
Ursprung e8cd150860
Commit 4c2faf175b
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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