Don't delete the first char of the command passed

This commit is contained in:
Dinnerbone
2011-02-01 18:12:31 +00:00
parent fbdb1d15aa
commit a402db3d66

View File

@@ -66,7 +66,7 @@ public final class SimpleCommandMap implements CommandMap {
*/
public boolean dispatch(CommandSender sender, String commandLine) {
String[] args = commandLine.split(" ");
String sentCommandLabel = args[0].substring(1);
String sentCommandLabel = args[0];
args = Arrays.copyOfRange(args, 1, args.length);