Skip to content

Rule: money

The money rule asks the configured economy provider “does this player have at least N?”. If yes, the click’s actions run; if no, denyActions runs.

click {
rules { money: 50 }
actions {
takeMoney: 50
itemAdd { ... }
}
denyActions: ${denyNoMoney}
}

The rule only checks balance - it doesn’t deduct. The takeMoney action does the actual charge. This separation lets you use money as a pure visual gate (showing different items based on balance) without spending the player’s coins.

Use the object form money: { amount: 50, provider: "vault" } to pin to a specific economy provider when multiple are registered.