Rewards and Player Data

AtlasLobby stores reward progress and player state in YAML. Rewards can grant commands and coins, while player data tracks lobby preferences, cosmetics, and resource-pack status.

Daily Rewards

Rewards are configured in rewards.yml:

enabled: true
claim-cooldown-hours: 24
streak-reset-hours: 48
coins:
  enabled: true
  base: 100          # coins granted on a claim
  per-streak: 25     # extra coins per streak day
  max: 1000          # cap
groups:
  default:
    permission: ""
    commands:
      - "give %player% emerald 3"
SettingMeaning
enabledTurns daily rewards on or off.
claim-cooldown-hoursHours before the player can claim again.
streak-reset-hoursHours before the streak resets.
coins.enabledEnables coin rewards.
coins.baseCoins granted on a claim.
coins.per-streakExtra coins per streak day.
coins.maxMaximum coin payout.
groupsPermission-based reward groups and command lists.

Each claim grants:

base + per-streak * (streak - 1)

The result is capped at max.

The amount is available to the claim message and title as %coins_earned%. See Coins Economy.

Players claim rewards through the rewards menu action:

actions:
  - "claim_daily_reward:"

Spam Protection

AtlasLobby uses a claim lock so a player cannot process multiple reward claims at once.

The in-memory claim timestamp is updated before reward commands run. That means fast menu clicks cannot repeatedly trigger rewards.

Menus also support click-cooldown-seconds.

Player Data File

Player data is stored here:

plugins/AtlasLobby/data/players.yml

Data includes:

DataNotes
UUIDPlayer UUID.
Last known nameMost recent player name.
First join timestampWhen the player first joined.
Last join timestampMost recent join.
Visibility modePlayer visibility preference.
Last daily claim timestampLast reward claim time.
Daily streakCurrent reward streak.
Coin balanceBuilt-in economy balance.
Equipped cosmeticsStored per slot: particle, hat, and gadget.
Resource pack statusLatest pack status.
Sound and particle preferencesPlayer settings.
Favorite/recent serverServer selector state.
Unlocked cosmeticsPurchased or unlocked cosmetics.

Saving Notes

AtlasLobby currently saves player data as YAML.

Player data is saved automatically during normal server use, including reward claims and cosmetic changes. On shutdown, AtlasLobby performs a final save so the latest player state is written to disk.

Avoid editing data/players.yml while the server is running unless you know exactly what you are changing.