Welcome and first join

Welcome
Private message to the player on every join, in welcome.yml > welcome. It uses the message format (chat with face, title, action bar, boss bar, sound, commands), plus:
| Option | |
|---|---|
enabled | false = off (same as config.yml > modules.welcome: false) |
delay-ticks | wait before sending it (20 = 1 second), so it's not lost between the messages of other plugins |
First join

Only the very first time a player joins, in welcome.yml > first-join:
| Part | |
|---|---|
player | message to the new player. Its commands run once in the life of the player (starter kit, rank, money...), right when he joins (1.0.1+): they don't wait for the skin |
broadcast | message to all the other players; {player} and the face are of the new player |
broadcast.exclude-new-player | true = the new player doesn't receive it |
replace-welcome | true = on the first join only player is sent, not the welcome too |
delay-ticks | wait before sending it |
first-join:
player:
commands:
console:
- "give {player} bread 16"
- "lp user {player} parent add default"
Test without rejoining: /fmes preview welcome, /fmes preview firstjoin, /fmes preview firstjoin-broadcast.
Join milestones (1.0.4+)
When a new player reaches a round number ({join_number} #100, #500, #1000...), everyone online gets a message: chat, title, sound, whatever you want. Its commands run once, right when that player joins, so you can give a prize to player #1000.
milestones:
enabled: true
numbers: [100, 250, 500, 1000, 2500, 5000, 10000]
every: 0
delay-ticks: 40
broadcast:
chat:
face: true
face-gap: " "
lines:
- ""
- "<gradient:#2F80ED:#56CCF2><bold>MILESTONE!</bold></gradient>"
- "&f{player} &7is the player"
- "&7number 8CCF2#{join_number}&7!"
- "&7Thank you all for playing."
- ""
title:
title: "<gradient:#2F80ED:#56CCF2><bold>#{join_number}</bold></gradient>"
subtitle: "&f{player} &7is our player number &f{join_number}"
fade-in: 10
stay: 60
fade-out: 20
sound: "ui.toast.challenge_complete"
sound-volume: 0.8
sound-pitch: 1.0
commands:
console:
- "give {player} diamond 5"
player: []
| Option | |
|---|---|
enabled | false = off. Off also when the milestones section is missing |
numbers | the join numbers that get the message |
every | also every N new players (0 = off). E.g. every: 1000 = #1000, #2000, #3000... |
delay-ticks | wait after the join (40 = 2 seconds), so it comes after the first join messages |
broadcast | the message, with every key of the message format. {player}, the face and every placeholder are about the new player |
- What players see on #1000: a chat block with the face of the new player ("Steve is the player number #1000!"), the big title
#1000and the challenge sound. {join_number}is always the number of that player, even if more new players join during the 2 seconds.- The counter is in
data.yml: see FAQ to start again from #1. - Files made before 1.0.4 don't have this section: copy the example above at the end of your
welcome.yml, then/fmes reload. New servers get it on by default. - Test it:
/fmes preview milestone(shows it only to you, its commands are not run).
Actualizat ultima data pe