跳到主要内容

Transaction Config Data

Structure: TransactionConfig

Configures the source/destination for funds (usually an external economy plugin) and feedback.

Configuration

transactionModeINTERNAL | VAULT (public artifact)

INTERNAL uses PlaceholderAPI plus configured console commands. VAULT uses the Vault Economy API directly and ignores amountPlaceholder and the command fields.

amountPlaceholderString

Placeholder representing the player's external balance (e.g. %vault_eco_balance%). Used to check funds and deduct cost.

addCommandString

Console command used to complete a deposit into storage. It is checked before the persistent mutation (e.g. eco take {player} {amount}).

removeCommandString

Console command used to complete a withdrawal from storage (e.g. eco give {player} {amount}).

Messages

addSuccessMessageString

Message on successful transaction (Storage -> Player).

addErrorMessageString

Message on failed transaction.

removeSuccessMessageString

Message on successful transaction (Player -> Storage).

removeErrorMessageString

Message on failed transaction.

noFundsMessageString

Message when player has 0 funds to move.