# On-Join Commands

Create dynamic scenarios by executing custom commands after fake players join. These interactions add depth and excitement, making your server more captivating than ever.

{% code overflow="wrap" fullWidth="false" %}

```yaml
  on_join_commands:
    delay: 5
    commands:
      - '50:eco give %player% {random[1000,10000,100]}' # Has a 50% chance to give the player a random amount of money between 1000 and 10000 that is divisible by 100
      - '80:eco give %player% {random[100,9000]}'
      - '10:eco give %player% {random[10000,100000,5]}'
```

{% endcode %}

* Commands to be executed when a player joins, with specified chances, random values and a delay

#### Custom Messages&#x20;

* You can use the following at the beginning of ":" sudo! ; chat!
* sudo! -> makes the fake player execute a command on join eg: "50:sudo!register (your authentication plugin command)"
* chat! -> makes the fake player say something when he joins eg: "50:chat!sup everyone!"

#### Custom Chances&#x20;

* Normally, the commands are executed weight randomly based (for more accurate results)
* You can use -999 instead of a normal number to execute a command URGENTLY that doesn't take into account the delay eg: "-999:sudo!login (password)"
