/balance
also /bal, /money
Show a balance
/balance [player]
The server's money. Players check their balance, pay each other, and other plugins like shops and bounties use the same balances.
Main commands
/eco give Alex 1000/eco take Alex 250/eco set Alex 5000/withdraw 500Can I run DEconomy next to EssentialsX or CMI?
Not as two economies. Players would see different balances depending on the command. Pick one, and set vault-economy to false if the other plugin keeps the money.
Do I need Vault?
No. If Vault is missing, DEconomy writes a small stand-in file into plugins/ so other plugins can still read the money. Set vault-bridge to false to stop that.
How do players make a payment safer?
They run /payconfirm. After that, /pay opens a screen with CANCEL and CONFIRM before the money moves. It is off for everyone by default.
Can I show cents?
Yes. Set money-decimals to 2. Amounts are always rounded down.
I used DMoney before. What changes?
The folder moves from plugins/DMoney to plugins/DEconomy on the first start. Balances, banknotes already in circulation and the Vault economy keep working. The permissions are deconomy.admin and deconomy.withdraw, the old dmoney.* nodes still work, and so do the %dmoney_...% placeholders next to %deconomy_...%. Remove DMoney.jar.
Menus and messages come from the default DEconomy files. Run a command, click an example, or pick a menu.
This plugin works through commands and chat. Try one below.
<name> you must fill in[name] optionalword typed as shown
also /bal, /money
Show a balance
/balance [player]Send money to another player
/pay <player> <amount>Administrate balances
/eco <give|take|set> <player> <amount>Needs deconomy.admin, operators only by default.
Allow or block incoming payments
/paymentsShow or hide the line when money arrives
/payalertsAsk before sending money
/payconfirmTurn money into a banknote
/withdraw <amount>Needs deconomy.withdraw, which everyone has by default.
Who has each one before you set anything up is in the middle column.
| Permission | Default | Grants |
|---|---|---|
| deconomy.admin | Operators | Give, take and set balances |
| deconomy.withdraw | Everyone | Turn money into a banknote |
plugins/DEconomy/aliases.yml
'deconomy.admin''deconomy.withdraw'deconomy'pay_alerts''pay_confirm'permissions:'dmoney.admin': 'deconomy.admin''dmoney.withdraw': 'deconomy.withdraw'identifiers:dmoney: deconomyplaceholders:deconomy:'payalerts': 'pay_alerts''payconfirm': 'pay_confirm'
plugins/DEconomy/settings.yml
Money: player balances, /pay, and the player database (money, points, kills, deaths, playtime). Edit, then restart the server. A setting you delete comes back with its default. Help and support: https://discord.devamy.net or dstudios@devamy.net
trueShould this plugin be the server's economy?
true = yes. It registers with Vault, and every other plugin reads and writes these balances.
false = no. It steps aside and /balance, /pay and /eco only show a note. Use this when EssentialsX, CMI
or another plugin already handles the money, or players will see different balances.Points, kills, deaths and playtime keep working either way. If you switch this off, also remove balance, bal, money, pay and eco from the visible list in plugins/DCommands/settings.yml, so the other plugin's commands are the ones players find.
trueWhat if there is no Vault plugin on the server? (Only matters while vault-economy is true.)
true = this plugin writes a small stand-in file called zzz-DEconomyVaultBridge.jar into plugins/ so other
plugins that need Vault still work. If you install the real Vault later, the stand-in is removed
when the server stops.
false = nothing is written. Without Vault, other plugins cannot see the balances.ENLanguage of the plugin's texts.
EN = English FR = French ES = Spanish
'�B5FF&lSMP &8| 'Text shown in front of every chat message from this plugin. Use '' for no prefix. & colour codes and &#RRGGBB work.
0Money a player gets the first time they join. Example: 500.
0How many decimals every money amount shows on the server (balances, /pay, shop prices, bounties...). 0 to 4.
0 = whole dollars. An amount under 1 still shows its cents, so 0.75 stays 0.75. 2 = cents everywhere, like 12.50
Amounts are always rounded down, so a screen never promises more than is paid out.
--- /pay --- Sending money between players.
trueCan players use /pay? false = paying is switched off.
1The smallest amount that can be sent. Example: 1 stops spam payments of 0.01.
--- Banknotes --- /withdraw <amount> takes money from your balance and gives you a paper note worth that amount. Right-click the note to put the money back, or hand it to another player. This is switched off by default.
How a note can never pay twice: every note gets its own id, and each id is written to plugins/DEconomy/data/banknotes.log, once when the note is made and once when it is redeemed. The amount a note pays comes from that log, never from the item, so editing the item changes nothing. A copy of a note, or an item made up with a fake id, is refused and written to the console log. If the log file cannot be read or written the feature stops, so a broken disk can never turn into free money. Do not delete or edit banknotes.log: notes that are still in players' hands would stop working, and redeemed ones could be redeemed again.
With DCore network mode on, notes live in the shared database instead, so a note made on one server works on every other one and still pays only once. The first start in network mode copies banknotes.log into the database and renames it to banknotes.log.migrated; do this on every server that had notes of its own.
falsetrue = players can make notes with /withdraw. false = nobody can make new notes. Notes that already exist still work either way, so switching this off never traps anyone's money.
100The smallest and largest amount one note may hold. A request outside this range is refused.
10000000003Seconds a player must wait between two /withdraw commands. Each one saves the player database to disk, so keep this above 0 to stop a player from spamming it.
PAPERThe item a note looks like. Any item name works; an unknown name falls back to PAPER.
'�B5FF&lBanknote &8| BFF00$%amount%'Name and lore of the note. You can use: %amount% (the value) %player% (who made it)
--- Daily login reward --- Players who log in on a new day get money, and the amount grows with how many days in a row they came. This is switched off by default.
falsetrue = pay the reward when a player joins on a new day. false = no reward.
The amounts, one per day of the streak. Day 1 pays the first number, day 2 the second, and so on.
trueWhat happens after the last day of the list.
true = the streak starts at the first amount again. false = the last amount keeps being paid every day.
0How many days a player may skip without losing the streak. 0 = they must log in every day.
UTCWhere "a new day" starts. Use a name like Europe/Berlin or America/New_York. A wrong name falls back to UTC.
40Ticks to wait after joining before the reward message is shown (20 ticks = 1 second). The money is paid at once.
--- Weekly top earners --- Once a week the server announces the players whose balance grew the most since the last announcement. The balance on the day the week started is kept in plugins/DEconomy/data/weekly-baseline.yml. With DCore network mode on, one server picks the winners from the shared database and every server shows the same announcement, so set the same day, hour and timezone on all of them.
truefalse = no announcement.
SUNDAYThe day and hour (24h clock, in the timezone below) the week ends and the announcement is made.
18UTC3How many players are named, 1 to 10.
1A player must have gained at least this much to be named. Raise it to ignore tiny changes.
--- Messages --- Chat messages. & colour codes and &#RRGGBB work. '' turns a message off. Amounts are already shortened (1.2K, 3.4M), so do not add your own thousand separators.
'&fYou have BFF00$%balance%&f!'You can use: %balance%
'&f%player% has BFF00$%balance%&f!'You can use: %player% %balance%
'&fYou sent BFF00$%amount% &fto �B5FF%player%&f.'You can use: %player% %amount%
'&fYou received BFF00$%amount% &ffrom �B5FF%player%&f.''&fWhile you were away you received BFF00$%amount% &ffrom �B5FF%player%&f.'Shown after a player joins, once per sender, when someone paid them while they were offline. '' = no notice (the money still arrives). You can use: %player% (the sender) %amount% (total sent while away) %count% (how many payments)
'&#FF5C5C%player% is not accepting payments.'The receiver switched incoming payments off with /payments. You can use: %player%
'&#FF5C5CPayment cancelled.'The sender clicked CANCEL on the confirmation screen.
'&fIncoming payments: GF521On'--- The three switches every player has --- /payments: can other players send me money at all?
'&fIncoming payments: &#FF5C5COff''&fPayment alerts: GF521On'/payalerts: show a chat line when money arrives? The money arrives either way.
'&fPayment alerts: &#FF5C5COff''&fAsk before paying: GF521On'/payconfirm: show the confirmation screen before I send money?
'&fAsk before paying: &#FF5C5COff''&#FF5C5COnly players can use this.''&#FF5C5CYou cannot afford that. &7(you have $%balance%)'You can use: %balance%
'&#FF5C5CThe smallest amount you can send is $%minimum%.'You can use: %minimum%
'&#FF5C5CYou cannot pay yourself.''&#FF5C5CPaying is currently disabled.''&#FF5C5CThe payment did not go through. Your money was not touched, try again in a moment.'Only with DCore network mode on: the payment could not be saved to the shared database, so nothing moved. The player can simply try again.
'&7Use &f/pay <player> <amount>&7. Suffixes work: 5k, 2.5m, 1b''&#FF5C5CNo player called %player% has ever joined.'You can use: %player%
'&#FF5C5CYou are not allowed to do that.''&#FF5C5CThis server''s economy is handled by another plugin.'Answer of /balance, /pay and /eco while vault-economy is false.
'&#FF5C5CConsole must name a player.'/balance typed in the console, which has no balance of its own.
'&#FF5C5COnly players can pay.''&7/eco <give|take|set> <player> <amount>'Shown when /eco gets too few or wrong arguments.
'&f%player% now has BFF00$%balance%'Confirmation after /eco give, take or set. You can use: %player% %balance%
'&fChanged the balance of �B5FF%player%&f. It shows on their server within a few seconds.'Only with DCore network mode on, when the player is on another server or offline. Their balance changes in the shared database, so this server cannot show the new total yet. You can use: %player%
'&#FF5C5CThe balance of %player% was not changed. Try again in a moment.'Only with DCore network mode on: the change could not be saved, so the balance is as it was. You can use: %player%
'&#FF5C5CBanknotes are switched off.'--- Banknotes ---
'&#FF5C5CThis note is not valid.''&7Use &f/withdraw <amount>&7. Suffixes work: 5k, 2.5m''&#FF5C5CWait a moment before making another note.''&#FF5C5CA note must be worth at least $%minimum%.'You can use: %minimum%
'&#FF5C5CA note can be worth at most $%maximum%.'You can use: %maximum%
'&fYou made a note worth BFF00$%amount%&f.'You can use: %amount%
'&fYou redeemed a note worth BFF00$%amount%&f.''&fDaily reward: BFF00$%amount% &7(day %streak% in a row)'--- Daily login reward --- You can use: %amount% %streak% (days in a row)
'&fThe top earners of the week:'--- Weekly top earners ---
'&8%rank%. &f%player% &7gained BFF00$%amount%'You can use: %rank% %player% %amount%
# Money: player balances, /pay, and the player database (money, points, kills, deaths, playtime).# Edit, then restart the server. A setting you delete comes back with its default.# Help and support: https://discord.devamy.net or dstudios@devamy.net# Other plugins read stats and leaderboards from this database, so do not disable the plugin lightly.# If you still run another economy plugin, read `vault-economy` below first.## Show a player's money on a scoreboard or in TAB with these placeholders:# %deconomy_balance% the formatted amount, 1,500# %deconomy_balance_raw% the bare number, 1500, for conditions and sorting# The older %dcore_money% and %dmoney_balance% still work.# Used by updates. Do not edit.config-version: 3# Should this plugin be the server's economy?# true = yes. It registers with Vault, and every other plugin reads and writes these balances.# false = no. It steps aside and /balance, /pay and /eco only show a note. Use this when EssentialsX, CMI# or another plugin already handles the money, or players will see different balances.# Points, kills, deaths and playtime keep working either way.# If you switch this off, also remove balance, bal, money, pay and eco from the visible list in# plugins/DCommands/settings.yml, so the other plugin's commands are the ones players find.vault-economy: true# What if there is no Vault plugin on the server? (Only matters while vault-economy is true.)# true = this plugin writes a small stand-in file called zzz-DEconomyVaultBridge.jar into plugins/ so other# plugins that need Vault still work. If you install the real Vault later, the stand-in is removed# when the server stops.# false = nothing is written. Without Vault, other plugins cannot see the balances.vault-bridge: true# Language of the plugin's texts.# EN = English# FR = French# ES = Spanishlanguage: EN# Text shown in front of every chat message from this plugin.# Use '' for no prefix. & colour codes and &#RRGGBB work.prefix: '�B5FF&lSMP &8| '# Money a player gets the first time they join. Example: 500.start-balance: 0# How many decimals every money amount shows on the server (balances, /pay, shop prices, bounties...). 0 to 4.# 0 = whole dollars. An amount under 1 still shows its cents, so 0.75 stays 0.75.# 2 = cents everywhere, like 12.50# Amounts are always rounded down, so a screen never promises more than is paid out.money-decimals: 0# --- /pay ---# Sending money between players.pay:# Can players use /pay? false = paying is switched off.enabled: true# The smallest amount that can be sent. Example: 1 stops spam payments of 0.01.minimum: 1# The "are you sure?" screen before sending. Only players who turned it on with /payconfirm see it.# It is off for everyone by default, so a normal payment needs no extra click.# You can use in the item texts: %player% (who gets the money) %amount%confirm-menu:title: '&8ᴘᴀʏ &8| ᴄᴏɴꜰɪʀᴍ'# Height of the menu in rows.rows: 3# Menu slots of the three buttons: cancel, the payment itself, and confirm. (0 is the top left, 9 slots# per row.)cancel-slot: 11subject-slot: 13confirm-slot: 15# Clicks that come this soon after the menu opened are ignored, in milliseconds (1000 = 1 second).# Why: the confirm button sits where the chat line was, so a fast double click could send money by accident.guard-millis: 300# The item that fills the empty slots.filler:material: GRAY_STAINED_GLASS_PANEname: ' 'cancel:material: RED_STAINED_GLASS_PANEname: '&#FF5C5C&lCANCEL'lore:- 'BFF00» &fClick &7to Cancel'subject:material: PAPERname: 'BFF00&lPAY'lore:- '&8│ &fSend BFF00$%amount% &fto �B5FF%player%&f?'confirm:material: LIME_STAINED_GLASS_PANEname: 'GF521&lCONFIRM'lore:- 'BFF00» &fClick &7to Confirm'# --- Banknotes ---# /withdraw <amount> takes money from your balance and gives you a paper note worth that amount. Right-click the# note to put the money back, or hand it to another player. This is switched off by default.## How a note can never pay twice: every note gets its own id, and each id is written to# plugins/DEconomy/data/banknotes.log, once when the note is made and once when it is redeemed. The amount a note# pays comes from that log, never from the item, so editing the item changes nothing. A copy of a note, or an item# made up with a fake id, is refused and written to the console log. If the log file cannot be read or written the# feature stops, so a broken disk can never turn into free money. Do not delete or edit banknotes.log: notes that# are still in players' hands would stop working, and redeemed ones could be redeemed again.## With DCore network mode on, notes live in the shared database instead, so a note made on one server works on# every other one and still pays only once. The first start in network mode copies banknotes.log into the# database and renames it to banknotes.log.migrated; do this on every server that had notes of its own.banknotes:# true = players can make notes with /withdraw. false = nobody can make new notes. Notes that already exist# still work either way, so switching this off never traps anyone's money.enabled: false# The smallest and largest amount one note may hold. A request outside this range is refused.minimum: 100maximum: 1000000000# Seconds a player must wait between two /withdraw commands. Each one saves the player database to disk,# so keep this above 0 to stop a player from spamming it.cooldown-seconds: 3# The item a note looks like. Any item name works; an unknown name falls back to PAPER.material: PAPER# Name and lore of the note. You can use: %amount% (the value) %player% (who made it)name: '�B5FF&lBanknote &8| BFF00$%amount%'lore:- '&8│ &7Worth BFF00$%amount%'- '&8│ &7Made by &f%player%'- ''- '�B5FF» &fRight-click &7to redeem'# --- Daily login reward ---# Players who log in on a new day get money, and the amount grows with how many days in a row they came.# This is switched off by default.login-reward:# true = pay the reward when a player joins on a new day. false = no reward.enabled: false# The amounts, one per day of the streak. Day 1 pays the first number, day 2 the second, and so on.amounts:- 100- 150- 200- 250- 300- 400- 500# What happens after the last day of the list.# true = the streak starts at the first amount again.# false = the last amount keeps being paid every day.repeat: true# How many days a player may skip without losing the streak. 0 = they must log in every day.missed-days-allowed: 0# Where "a new day" starts. Use a name like Europe/Berlin or America/New_York. A wrong name falls back to UTC.timezone: UTC# Ticks to wait after joining before the reward message is shown (20 ticks = 1 second). The money is paid at once.message-delay-ticks: 40# --- Weekly top earners ---# Once a week the server announces the players whose balance grew the most since the last announcement.# The balance on the day the week started is kept in plugins/DEconomy/data/weekly-baseline.yml.# With DCore network mode on, one server picks the winners from the shared database and every server shows the# same announcement, so set the same day, hour and timezone on all of them.weekly-top:# false = no announcement.enabled: true# The day and hour (24h clock, in the timezone below) the week ends and the announcement is made.day: SUNDAYhour: 18timezone: UTC# How many players are named, 1 to 10.entries: 3# A player must have gained at least this much to be named. Raise it to ignore tiny changes.minimum-gain: 1# --- Messages ---# Chat messages. & colour codes and &#RRGGBB work. '' turns a message off.# Amounts are already shortened (1.2K, 3.4M), so do not add your own thousand separators.messages:# You can use: %balance%balance-self: '&fYou have BFF00$%balance%&f!'# You can use: %player% %balance%balance-other: '&f%player% has BFF00$%balance%&f!'# You can use: %player% %amount%pay-sent: '&fYou sent BFF00$%amount% &fto �B5FF%player%&f.'pay-received: '&fYou received BFF00$%amount% &ffrom �B5FF%player%&f.'# Shown after a player joins, once per sender, when someone paid them while they were offline.# '' = no notice (the money still arrives).# You can use: %player% (the sender) %amount% (total sent while away) %count% (how many payments)pay-received-offline: '&fWhile you were away you received BFF00$%amount% &ffrom �B5FF%player%&f.'# The receiver switched incoming payments off with /payments. You can use: %player%pay-blocked: '&#FF5C5C%player% is not accepting payments.'# The sender clicked CANCEL on the confirmation screen.pay-cancelled: '&#FF5C5CPayment cancelled.'# --- The three switches every player has ---# /payments: can other players send me money at all?payments-on: '&fIncoming payments: GF521On'payments-off: '&fIncoming payments: &#FF5C5COff'# /payalerts: show a chat line when money arrives? The money arrives either way.payalerts-on: '&fPayment alerts: GF521On'payalerts-off: '&fPayment alerts: &#FF5C5COff'# /payconfirm: show the confirmation screen before I send money?payconfirm-on: '&fAsk before paying: GF521On'payconfirm-off: '&fAsk before paying: &#FF5C5COff'players-only: '&#FF5C5COnly players can use this.'# You can use: %balance%pay-insufficient: '&#FF5C5CYou cannot afford that. &7(you have $%balance%)'# You can use: %minimum%pay-too-small: '&#FF5C5CThe smallest amount you can send is $%minimum%.'pay-self: '&#FF5C5CYou cannot pay yourself.'pay-disabled: '&#FF5C5CPaying is currently disabled.'# Only with DCore network mode on: the payment could not be saved to the shared database, so# nothing moved. The player can simply try again.pay-failed: '&#FF5C5CThe payment did not go through. Your money was not touched, try again in a moment.'pay-usage: '&7Use &f/pay <player> <amount>&7. Suffixes work: 5k, 2.5m, 1b'# You can use: %player%unknown-player: '&#FF5C5CNo player called %player% has ever joined.'no-permission: '&#FF5C5CYou are not allowed to do that.'# Answer of /balance, /pay and /eco while vault-economy is false.economy-disabled: '&#FF5C5CThis server''s economy is handled by another plugin.'# /balance typed in the console, which has no balance of its own.balance-console: '&#FF5C5CConsole must name a player.'pay-players-only: '&#FF5C5COnly players can pay.'# Shown when /eco gets too few or wrong arguments.eco-usage: '&7/eco <give|take|set> <player> <amount>'# Confirmation after /eco give, take or set. You can use: %player% %balance%eco-done: '&f%player% now has BFF00$%balance%'# Only with DCore network mode on, when the player is on another server or offline. Their# balance changes in the shared database, so this server cannot show the new total yet.# You can use: %player%eco-done-remote: '&fChanged the balance of �B5FF%player%&f. It shows on their server within a few seconds.'# Only with DCore network mode on: the change could not be saved, so the balance is as it was.# You can use: %player%eco-failed: '&#FF5C5CThe balance of %player% was not changed. Try again in a moment.'# --- Banknotes ---banknote-disabled: '&#FF5C5CBanknotes are switched off.'banknote-unavailable: '&#FF5C5CBanknotes are not available right now. Your money was not touched.'banknote-invalid: '&#FF5C5CThis note is not valid.'withdraw-usage: '&7Use &f/withdraw <amount>&7. Suffixes work: 5k, 2.5m'withdraw-cooldown: '&#FF5C5CWait a moment before making another note.'# You can use: %minimum%withdraw-too-small: '&#FF5C5CA note must be worth at least $%minimum%.'# You can use: %maximum%withdraw-too-large: '&#FF5C5CA note can be worth at most $%maximum%.'# You can use: %amount%withdraw-done: '&fYou made a note worth BFF00$%amount%&f.'banknote-redeemed: '&fYou redeemed a note worth BFF00$%amount%&f.'# --- Daily login reward ---# You can use: %amount% %streak% (days in a row)login-reward: '&fDaily reward: BFF00$%amount% &7(day %streak% in a row)'# --- Weekly top earners ---weekly-top-header: '&fThe top earners of the week:'# You can use: %rank% %player% %amount%weekly-top-line: '&8%rank%. &f%player% &7gained BFF00$%amount%'
DCore
Vault, PlaceholderAPI. Vault is how every other plugin asks about money. Without a Vault jar, DEconomy writes its own Vault stand-in into plugins/ (see vault-bridge in settings.yml) and registers with it.
Paper 1.21 or newer, and forks like Purpur and Leaf. Folia is supported. Java 21 or newer.