package me.benjozork.onyx.internal.console;

/**
 * @author Benjozork
 */
public class ConsoleCommand {

    public ConsoleCommand(String command, String... args) {
        this.command = command;
        this.args = args;
    }

    private String command;
    private String args[];

    public String getCommand() {
        return command;
    }

    public String[] getArgs() {
        return args;
    }

}

@@ -42,16 +42,59 @@
 e;%0A%0A/**%0A
+ * Describes a command sent to the console%0A
  * @auth
@@ -150,182 +150,490 @@
    p
-ublic ConsoleCommand(String command, String... args) %7B%0A        this.command = command;%0A        this.args = args;%0A    %7D%0A%0A    private String command;%0A    private String args%5B%5D;
+rivate String command;%0A    private String args%5B%5D;%0A%0A    /**%0A     * @param str the whole string of the command, including identifier and arguments all separated by whitespaces%0A     */%0A    public ConsoleCommand(String str) %7B%0A        String%5B%5D splitBuf = str.split(%22 %22);%0A        this.command = splitBuf%5B0%5D;%0A        if (splitBuf.length %3C= 1) %7B%0A            this.args = new String%5B%5D%7B%7D;%0A            return;%0A        %7D%0A        System.arraycopy(splitBuf, 1, args, 1, splitBuf.length - 1);%0A    %7D
 %0A%0A  

Change ConsoleCommand constructor