Fixed an error the command parser that resulted it in handling commands it did not really handle. Closes #153.

This commit is contained in:
sk89q 2011-02-23 00:31:49 -08:00
parent b725ade5cf
commit ccd586ec81

View File

@ -858,7 +858,8 @@ public class WorldEdit {
if (commands.hasCommand(searchCmd)) {
} else if (config.noDoubleSlash && commands.hasCommand("/" + searchCmd)) {
split[0] = "/" + split[0];
} else if (commands.hasCommand(searchCmd.substring(1))) {
} else if (split[0].length() >= 2 && split[0].charAt(0) == '/'
&& commands.hasCommand(searchCmd.substring(1))) {
split[0] = split[0].substring(1);
}