# io.github.libtmux.Server.Server.chain

- **Module:** io.github.libtmux.Server.Server
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/Server.java#L172
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-server-server-chain/

```
io.github.libtmux.Server.Server.chain() -> CommandChain
```

Starts a chain of commands where each one acts on what the last one made.

<p>tmux moves its own current target as a group runs, so a chain needs no round trip to learn
the id of a window or pane it just created.
