TMDevelopmentTinulica & Maiky

Rewards and milestones

Rewards and milestones

SectionWho gets itWhen
referral.inviterthe player written in /referrals <player>every new player who enters him
referral.invitedthe new playerwhen he enters his inviter (welcome reward)
milestones.<n>the inviterwhen he reaches <n> invites

Everything can be set in-game: /referrals settings → Referral rewards / Milestones.

milestones:
  '5':
    enabled: true
    repeat: false            # true = every 5 invites (5, 10, 15...)
    name: "<gradient:#ff5f6d:#ffc371>5 Invites</gradient>"
    icon: GOLD_BLOCK         # icon in the menus (a held item or a player head can be set in-game)
    items:
      - "DIAMOND:8"          # or drag any item in-game: names, lore, enchants and NBT are kept currencies: money: 2500            # ids from config.yml > currencies tokens: 50 commands:                # run by the console, without /
      - "lp user {player} parent add vip" messages:                # sent to the player
      - "{prefix}&aYou reached &f5 invites&a!" broadcast:               # sent to everyone
      - "{prefix}&f{player} &7reached &#ff7a6b5 invites&7!" display: title: title: "&#ff7a6b5 INVITES" subtitle: "&7Milestone reward received" fade-in: 10          # ticks, 20 = 1 second stay: 60 fade-out: 20 actionbar: "" bossbar: text: "Milestone 5 invites reached!" color: YELLOW        # PINK BLUE RED GREEN YELLOW PURPLE WHITE style: PROGRESS      # PROGRESS NOTCHED_6 NOTCHED_10 NOTCHED_12 NOTCHED_20 seconds: 6 delivery: default        # default / menu / auto (see Collect menu)  (1.0.21+) servers: [all]           # network only (see Network)           (1.0.21+)

Placeholders in commands, messages and display: {player} {uuid} {invites} {milestone} {inviter} {invited} {prefix}.

Once or repeating

  • repeat: false: given once, when the invites reach the number (if a milestone is added later and the player already has more invites, he gets it at his next invite).
  • repeat: true: given every time the invites are a multiple of the number.

A reward that is turned off waits: it is given when you turn it on again (1.0.21+).

Ultimo aggiornamento: 25 ottobre 2026