|
Mechanic: CurrencyGive
|
|
## Description
|
|
======================
|
|
|
|
|
|
|
|
Gives money to players.
|
|
Gives money to players.
|
|
This mechanic needs the Vault plugin and an economy plugin installed to
|
|
This mechanic needs the Vault plugin and an economy plugin installed to
|
|
work.
|
|
work.
|
|
It also requires Vault being enabled in the [](/configuration/).
|
|
It also requires Vault being enabled in the plugin's Configurations file
|
|
|
|
```yaml
|
|
Vault:
|
|
Vault:
|
|
Enabled: true
|
|
Enabled: true
|
|
|
|
```
|
|
|
|
|
|
Attributes
|
|
## Attributes
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|-----------|---------|----------------------|---------|
|
|
|-----------|---------|----------------------|---------|
|
|
| amount | a | The amount of money. | 0.0 |
|
|
| amount | a | The amount of money. | 0.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples
|
|
## Examples
|
|
--------
|
|
```yaml
|
|
|
|
|
|
- currencygive{amount=20} @pir{r=20} ~onSpawn 0.2
|
|
- currencygive{amount=20} @pir{r=20} ~onSpawn 0.2
|
|
|
|
```
|
|
If executed all players in radius of 20 blocks around the spawned mob
|
|
If executed all players in radius of 20 blocks around the spawned mob
|
|
will receive 20 money by a chance of 20% |
|
will receive 20 money by a chance of 20% |
|
|
|
\ No newline at end of file |