The Leagues plugin (leagues) runs weekly leagues and player teams. Players earn league points for every pot they win and compete in groups of up to 20 in their division (Bronze, Silver, Gold, Platinum, Diamond by default). At the weekly reset the top 5 of each group move up, the bottom 5 move down, and ranks are paid in virtual chips. Players can also form teams of up to 20 with a weekly shared goal (by default: win 1,000 pots together for 250,000 chips each). Bots never score or take a league place.
The plugin source is in plugins/leagues (plugin API 1.3). Its README documents the routes, events, hooks and storage for developers.
Enabling the Plugin
It’s sold separately as leagues-<version>.tgz; upload it under Extensions › Plugins with Upload plugin. Capabilities:
| Capability | Why |
|---|---|
storage | Weekly rows, groups, results, teams |
wallet:credit-virtual | Rank rewards and the team goal |
realtime | Points, results and team progress for the players concerned |
scheduler | Finalises each week (every 10 minutes, resumable) |
notify:in-app | Weekly results, team invites and the team goal |
users:read | Usernames in the standings, invites by username, bot check |
Rank rewards are paid once per player per week, and each player receives at most one team reward per week. Manifest daily cap: 2,000,000,000 chips, all paid on the day of the weekly rollover (200,000 to 1,600,000 per group of 20 with the default divisions, plus team rewards); on a big site raise it under Wallet daily caps (a typed limit can be up to 1,000,000,000,000 chips a day) or choose Unlimited.
Settings
| Setting | Default | Description |
|---|---|---|
| Time zone / Reset weekday / Reset hour | UTC / Monday / 0 | When a league week starts. |
| Divisions | Bronze → Diamond | Names and chip rewards per final rank, lowest division first. |
| Players per league group | 20 | |
| Promoted / Demoted per group | 5 / 5 | |
| Points per pot | 10 + round(3 × log10(amount)) | Base, size factor and minimum pot are settings. |
| Teams | on, 20 members | |
| Team goal | 1,000 pots, 250,000 chips | Members need at least 1 pot for the team that week to share it. |
Growth › Leagues shows this week’s groups per division and lets you finalise the previous week immediately.