Oleg Yuvashev - 2018-01-29

You need to override method ExecuteCommand in your plugin. Something like this:

    public override ExecResult ExecuteCommand(TcWindow mainWin, ref string remoteName, string command) {
        if (String.IsNullOrEmpty(command))
            return ExecResult.Yourself;
        if (command.StartsWith("OPENTABS ")) {
            string param = command.Substring(9);
            // do what you need
            return ExecResult.OK;
        }  // else if ... other commands...
    }