Vaultπ
Conditionsπ
Vault Money Condition: moneyπ
Checks if the player has the specified amount of money.
Example
conditions:
hasMoney: "money 1"
canAffordPlot: "money 10000"
isRich: "money 1000000"
Actionsπ
Vault Money Action: moneyπ
Deposits, withdraws or multiplies money in the player's account.
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| amount | Number | The amount of money to add or remove. | |
| notify | Keyword: notify |
Disabled | Display a message to the player when their balance is changed. |
| multiply | Keyword: multiply |
Disabled | Multiplies the current balance with the amount instead simply adding it. |
Example
actions:
sellItem: "money +100"
buyPlot: "money -10000"
winLottery: "money 7 multiply notify"
Change Permission (Groups): permissionπ
Adds or removes a permission or a group.
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| action | add or remove |
Whether to add or remove the thing specified using the following arguments. | |
| type | perm or group |
Whether to use a permission or permission group. | |
| name | The name of the permission. | The name of the permission or group to add. | |
| world | The name of the world. | Global | You can limit permissions to certain worlds only. If no world is set the permission will be set everywhere (global). |
Example
actions:
allowFly: "permission add perm essentials.fly"
joinBandit: "permission add group bandit"
leaveBandit: "permission remove group bandit"
Placeholdersπ
Vault Money Placeholder: moneyπ
Use %money.amount% for showing the player's balance.
Use %money.left:500% for showing the difference between the player's balance and the specified amount of money.
Example
actions:
notifyBalance: "notify You have %money.amount%$!"
notifyNotEnough: "notify You still need %money.left:10000%$ to buy this plot."