Skip to content

Cups ​

Bar owners host cups: single elimination tournaments, seeded by ELO, with entry fees in escrow and a prize split. Cups are switched on with Config.Cups.enabled.

Cups in the Pool League app

Creating a cup ​

On the owner tablet, Host a cup → Open sign-ups (or with CreateCup from another resource):

Field Limits Default
Name up to 32 characters Cup
Mode 8ball, 9ball, straight 9ball
Size one of Config.Cups.sizes (4, 8, 16, 32) 16
Entry 0 – Config.Cups.maxEntry ($10,000) 0
Rake 0 – Config.Cups.maxRake (20 %) 10 %
Split 1st / 2nd / 3rd in %, must add up to 100 60 / 30 / 10
Race 1 – Config.Match.maxRace 3
Announce Push a phone notification to every player within 5 km of the bar off

Signing up ​

Players join from the Cups tab of the Pool League app (and can leave again while sign-up is open). The entry is held in escrow. The owner presses Start the cup once at least two players are in.

The bracket ​

Entrants are sorted by ELO and placed in the standard bracket order, so the top seeds meet last. Free slots become byes. Every match whose two players are known is called:

  • a toast, an np_phone push and a Dynamic Island activity (Your match is up) for both players;
  • they go to any free table of that bar; the lobby shows Cup match ready with a Start button;
  • cup matches have no table fee and no stake, and they are ranked (at bars with house.ranked = true).

If the opponent hasn't shown up within Config.Cups.callTimeout (300 s) and isn't within 15 m of the table, the player who is there can claim a walkover in the lobby. A voided cup match is called again.

The phone app shows the live bracket: rounds (last 32 … semis, final), scores, live matches and their tables.

Prizes ​

When the final is won, the pool (entry × entrants) minus the rake is split: 1st and 2nd by the split, 3rd shared by the two semi-final losers. Prizes go to Config.PayoutAccount; offline winners are paid at their next login. The rake and any rounding go to the bar (cup in the revenue log). np_billiards:cupEnded fires and the result is logged.

A server restart cancels running cups and refunds every entry still held.