Storage and WorldGuard
SQLite or MySQL, the two economy modes and the WorldGuard flags
Storage
| Type | When to use |
|---|---|
SQLITE | The default. One server. Data is in plugins/MoneyRace/data.db and nothing needs setting up |
MYSQL | Networks or bigger servers. Fill in storage.mysql and restart |
storage:
type: MYSQL
table-prefix: "moneyrace_"
mysql:
host: localhost
port: 3306
database: moneyrace
username: root
password: ""
use-ssl: false
pool-size: 10Every table name starts with table-prefix (moneyrace_), so MoneyRace can share a database with other plugins. Changing the storage type needs a restart and does not copy data from the old one.
Player data is loaded before a player joins and saved every 2 seconds when it has changed, so a crash loses almost nothing.
Economy modes
economy.provider | What happens |
|---|---|
MONEYRACE | MoneyRace is the Vault economy. Other plugins like shops and jobs use MoneyRace balances. Remove or switch off other economy plugins |
EXTERNAL | Keep your current economy plugin, for example EssentialsX. MoneyRace reads and moves money through Vault and keeps a copy of balances for its leaderboards. Starting balances are left to the other plugin |
In MONEYRACE mode MoneyRace registers with high priority. In EXTERNAL mode it picks the best other provider one tick after it starts, and checks again every economy.external-refresh-seconds (30).
Vault is a soft dependency. MoneyRace starts without it, but other plugins cannot see the money, so install it unless nothing else needs your balances.
See Money and economy for starting balances and late joiners.
WorldGuard flags
With WorldGuard installed, MoneyRace adds two flags.
| Flag | Use |
|---|---|
moneyrace-vault | Set to deny to stop team vaults being placed in a region, like spawn |
moneyrace-points | Controls capture points in a region |
Example:
/rg flag spawn moneyrace-vault denyOperators bypass WorldGuard flags, so test with a normal player.
PlaceholderAPI
With PlaceholderAPI installed, every placeholder starts with %moneyrace_. See Placeholders. PlaceholderAPI placeholders also work inside the HUD lines.