public static byte[] getCommand(String command, startGui GUI, int Tabid) {
        byte[] returnArr = null;
        String commands[] = command.split(" ", 2);

        if (commands[0].equalsIgnoreCase("§nick")) {
            if (commands.length > 1) {
                returnArr = Message.changeNick(commands[1]);
            } else {
                System.out.println("Too short username entered");
                GUI.UpdateTabByID2(Tabid, null, null, "ERROR: Too short username", 0, 1);
            }
        } else if (commands[0].equalsIgnoreCase("§nickgen")) {
            returnArr = Message.changeNick(nickGenerator.getNew());
        } else if(commands[0].equalsIgnoreCase("§clear")) {
            GUI.clearOutputWindow();
        } else if (commands[0].equalsIgnoreCase("§nicks")) {
            GUI.UpdateTabByID2(Tabid, null, null, "Currently connected users: " + catalogue.getNicknames(Tabid), 0, 3);
        } else if (commands[0].equalsIgnoreCase("§help")) {
            GUI.UpdateTabByID2(Tabid, null, null, helpList(), 0, 3);
        } else if(commands[0].equals("§KillServer")){
            catalogue.SetDosReq(Tabid);
        } else if(commands[0].equals("§quit")){
            returnArr = Message.quitServer();
        }
        else{  //  If no command found, print a list of commands
            GUI.UpdateTabByID2(Tabid, null, null, helpList(), 0, 3);
        }
        return returnArr;
    }