In HADOS, a tournament is not a separate database entity — it is a phase of a Dado. All tournament configuration (dates, prize, rules, schedule, qualifying count) is stored directly on the Dado document, and each player’s score and rank are stored on their individualDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/VasquezRivero92/HabboCafe/llms.txt
Use this file to discover all available pages before exploring further.
HabboUser profile with dadoId linking them to the correct Dado. This means that at any moment, opening a Dado gives you the complete live state of its current tournament.
Tournament lifecycle
Setup
The Dado Admin opens the Dado Panel tab and fills in the tournament configuration. These fields are written directly to the Dado document in Firestore:
- Start date (
startDate) and end date (endDate) — displayed on the tournament info panel after formatting toDD/MM. - Total prize (
totalPrize) — a free-text string such as"3000 USDT"shown in the info widget. - Qualifying count (
qualifyingCount) — the number of top-ranked players who qualify for the final stage (default:12). - Rules (
rules) — a newline-separated block of text; each line becomes one entry in therulesarray and is rendered individually in the Reglas tab. - Schedule (
schedule) — a newline-separated block of text; each line becomes one entry in theschedulearray shown in the Fecha y horarios tab.
updateDoc call. Changes appear in every connected session immediately.Active — points loading
Once the tournament is underway, Intermediarios and Dado Admins load points through two mechanisms:
- Points modal — Click Cargar puntos, search for the target player via the autocomplete combobox, enter a positive or negative decimal value (e.g.
15.5or-10), and submit. The modal previews the player’s current total and the resulting new total before confirming. - Quick actions — In List and Grid view modes, inline
+10and+50buttons (and-10/-50in Grid mode) allow rapid point adjustments without opening the modal.
currentRank to every player in the Dado, and promotes the previous currentRank into previousRank — all in a single Firestore batch write.Reset — start a new tournament
When the Dado Admin is ready to run a new edition, they click Crear Nuevo Torneo (Reiniciar) in the Dado Panel. This opens the reset modal where they must:
- Set a new start date.
- Set a new end date.
- Type
REINICIARinto the confirmation field (the check normalizes input to uppercase before comparing).
startDate and endDate, then iterates every player in the Dado and sets their points, previousRank, and currentRank all to 0 / 1 / 1 respectively. The player roster is preserved — only scores and dates change.Rank tracking: previousRank vs currentRank
Every HabboUser document stores two rank fields that work together to power the leaderboard’s trend indicators:
| Field | Description |
|---|---|
currentRank | The player’s rank after the most recent point update. Position 1 is the highest scorer. |
previousRank | The player’s rank before the most recent point update. Set to the former currentRank on every write. |
previousRank − currentRank. A positive delta means the player moved up (rendered as a green upward chevron with the number of positions gained); a negative delta means they dropped (red downward chevron); zero means no movement (grey dash).
The qualifyingCount field
qualifyingCount is a number stored on the Dado document that represents how many top-ranked players in the tournament earn a spot in the final. It is displayed in the tournament information panel:
“Clasifican 12 jugadores”The Dado Admin can update this value at any time from the Cantidad de Clasificados input in the Dado Panel configuration form. The platform stores no automatic enforcement logic around this number — it is informational, shown to all players so they know what rank they must reach to qualify.
Score reset: confirmation and irreversibility
The reset flow requires typing the exact word REINICIAR into a confirmation field before the platform will proceed. This is enforced in code:Tournament information tabs
Players can view tournament details from the Torneo activo tab, which exposes three sub-tabs:- Información
- Reglas
- Fecha y horarios
Shows four summary widgets: the tournament duration (formatted start → end dates), the qualifying count, the total prize, and the last updated timestamp. All values are sourced live from the active Dado document.