# Configuration The main setting lives in `plugins/Chain/config.yml` and appears the first time you start the server. ```yaml max_distance: 3 ``` ## What it does `max_distance` is how far apart two chained things can drift before the chain starts pulling, measured in blocks. Default is 3. The lowest Chain will accept is 2, even if you write something smaller, and the highest is 32. Two things happen as you stretch a chain: - **Past `max_distance`**, both ends get nudged back toward each other. - **Past roughly two and a half times `max_distance`**, whoever strayed is teleported back. That's the safety net for when someone outruns the nudge. So with the default 3, you'll feel a pull at 3 blocks and get snapped back somewhere around 7 or 8. ## After a teleport When a chained player teleports (an ender pearl, `/tp`, a portal), the other end comes with them. For a short moment the chain doesn't pull at all, so nobody gets yanked back to where they started while the other end catches up. ```yaml teleport_grace_ticks: 20 ``` That's in ticks, and 20 ticks is one second. It's never shorter than the ender pearl cooldown. ## Changing it In game, which saves immediately: ``` /chain set_max_distance 5 ``` Or edit the file and reload: ``` /chain reload ``` ## Related Pages - [[Chain/Server Owners/Overview]], what Chain does - [[Chain/Server Owners/Commands]], every command