# Frame - v1.0.7
## Conditions & Nested Sorting
### PLUGIN UPDATES
- **Conditional text.** Wrap anything in `<condition:'value'>…</condition>` and it only shows when the value is `true`. Placeholders resolve first, so put one straight in: `<condition:'%lead_team_exists%'>Team: %lead_team_name%</condition>`. Works in the sidebar, header, footer, nametags and tab names.
- **Sidebar lines disappear cleanly.** Wrap a whole line in a condition and a false result removes the row entirely — no empty row, no gap. Lines you leave blank still work as spacers. `sidebar.hide-blank-lines` hides those too if you'd rather.
- **Nested sorting.** A sorting rule can now have its own rules inside it via `nested:`, with `then:` covering the categories you didn't write a branch for. Players can never be sorted out of their own block.
- **Nametag colours.** `nametag.color` sets the colour of the name above a player's head, globally or per group.
- **Rank prefixes render properly.** LuckPerms prefixes are read as MiniMessage, and tab prefixes and suffixes are contributed separately so a plugin setting one no longer wipes the other.
### PLUGIN FIXES
- **Rank sorting works when ranks come from inherited groups.** Sorting read the primary group, which LuckPerms only maintains on servers that enable primary-group calculation — so granting a rank by adding a parent group left everyone sorted identically and weights looked ignored. It now reads the heaviest inherited group.
- **Frame no longer un-hides nametags.** Visibility was rewritten every refresh, overriding plugins that had deliberately hidden a nametag.
- **Sidebar clears when you switch it off.** `/frame reload` after disabling the sidebar left the last one frozen on screen.