/dcurrency
Rename the currency, preview how it reads and rename its commands
/dcurrency rename/dcurrency preview/dcurrency command
A second currency for your server. Players earn points by playing and spend them in the point shop. You pick the name, the symbol and the look.
Main commands
/dcurrency rename Star Stars ✦/dcurrency preview/dcurrency command points stars/points give Alex 500/points take Alex 100/points set Alex 1000/points reload/points event start 30 3/points event stop/points event status/points import-skript/pointshop reload/pointshop reload/pointshop edit/dcore adminCan I change the command from /points?
Yes. Run /dcurrency command points <new name>, or set command.name in settings.yml and add other names under command.aliases, then run /points reload. No restart is needed.
Can players trade points with each other?
Yes. /points pay <player> <amount> sends points. Players need the dcurrency.pay permission, which everyone has by default. They cannot send to themselves.
Does a double points event change points from other plugins?
No. It only multiplies what DCurrency pays itself: the playtime reward and the kill reward.
Will my balances move if I change the database type?
No. The new storage starts empty. Copy the balances over yourself before you switch.
Who can see another player's balance?
Only players with dcurrency.others, which is for operators by default. Everyone can see their own with dcurrency.use.
Can I sell things that are not ranks or keys?
Yes. After the points are taken, the shop runs the console commands you wrote for the item. If your server has a command for it, you can sell it.
What if I only have one category?
By default /pointshop opens that category straight away. Set pointshop.single-category-direct to false to always show the main menu.
Can players type /pointshop keys to jump to a category?
Yes. Use the category's file name, for example /pointshop keys or /pointshop ranks.
Do the permission nodes change when I rename the currency?
No. They stay dcurrency.use, dcurrency.pay, dcurrency.others, dcurrency.admin and dcurrency.shop.admin. To hand them out under your own names, make a permission with your name in LuckPerms and add the dcurrency node as a child of it. The old dpoints.* nodes and dpointshop.admin still work.
What are the placeholders called?
%currency_balance%, %currency_balance_raw%, %currency_balance_formatted%, %currency_balance_amount%, %currency_next%, %currency_currency%, %currency_symbol% and %currency_code%. Change the first word with placeholders.identifier. The older %dcurrency_...% and %dpoints_...% placeholders still work.
Where do players get points?
By default they earn 1 point per minute of play. The shop only spends them.
Menus and messages come from the default DCurrency 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
Rename the currency, preview how it reads and rename its commands
/dcurrency rename/dcurrency preview/dcurrency commandalso /pshop, /ps, /sshop
Open the point shop
/pointshop [edit]Needs dcurrency.shop.admin, operators only by default.
Who has each one before you set anything up is in the middle column.
| Permission | Default | Grants |
|---|---|---|
| dcurrency.use | Everyone | Check your own balance |
| dcurrency.pay | Everyone | Send your points to other players |
| dcurrency.others | Operators | Look at another player's balance |
| dcurrency.admin | Operators | Give, take and set balances, import them from Skript, and reload the settings |
| dcurrency.shop.admin | Operators | Reload the point shop with /pointshop reload |
plugins/DCurrency/aliases.yml
'dcurrency.use''dcurrency.pay''dcurrency.others''dcurrency.admin''dcurrency.shop.admin''dcurrency.shop.admin''dtags.tag.*'currencycurrency'balance_raw''balance_raw''balance_raw'permissions:'dpoints.use': 'dcurrency.use''dpoints.pay': 'dcurrency.pay''dpoints.others': 'dcurrency.others''dpoints.admin': 'dcurrency.admin''dpoints.shop.admin': 'dcurrency.shop.admin''dpointshop.admin': 'dcurrency.shop.admin''dsmp.tag.*': 'dtags.tag.*'identifiers:dpoints: currencydcurrency: currencyplaceholders:currency:'balance_exact': 'balance_raw''points_exact': 'balance_raw''stars_exact': 'balance_raw'
plugins/DCurrency/settings.yml
Currency: the server's second currency. Its name, how it is written, how players earn it and where balances are saved. Edit, then run /points reload. A setting you delete comes back with its default, so change values instead. Help and support: https://discord.devamy.net or dstudios@devamy.net
The point shop further down and other plugins read the name and format from here, so renaming it here renames it everywhere. Placeholders for TAB, holograms and scoreboards (the first word can be changed with placeholders.identifier):
%currency_balance% short number, 1.5K %currency_balance_raw% every digit, 1500 %currency_balance_formatted% with the name or symbol, 1.5K Points %currency_balance_amount% with the symbol if one is set, else 1.5K %currency_next% time until the next playtime reward, 4m %currency_currency% the plural name (%currency_currency_singular% = the singular name) %currency_symbol% and %currency_code% the symbol and the short code
The older %dcurrency_...% and %dpoints_...% placeholders still work.
--- Currency --- What your currency is called and how it looks. Change it here, or in game with
/dcurrency rename <name> [plural] [symbol]
The name, the symbol and the colour reach every message, menu and placeholder, and balances are never touched. Use /dcurrency preview to see how it reads. These words can be used in any text of this file:
%currency% the name that fits the amount: "Point" for 1, "Points" for more %currency_singular% always the singular name %currency_plural% always the plural name %currency_upper% the plural name in capitals, POINTS %currency_small% the singular name in small capitals, for menu titles %currency_tag% the plural name in capitals, bold and in the colour below, for chat prefixes %currency_color% only the colour code %symbol% the symbol below, empty when there is none %code% the short code below, or the plural name in capitals when there is none
'Point'The name for one unit and for several. Used in sentences like "You have 1 Point" and "You sent 5 Points".
'Points'A language other than English: when the server language is set to ES or FR and singular and plural above are still the defaults, these names are used instead. They are filled in by the translation file in lang/es and lang/fr, where you can change them. A name you type above always wins.
''''''A short sign written with every amount instead of the name. Example: '✦' gives ✦1.5K. Leave '' to write the name instead ("1.5K Points").
beforeWhere the symbol goes. Only matters when a symbol is set.
before = ✦1.5K after = 1.5K✦
''A short code for the currency, like PTS or GEM. Empty = %code% shows the plural name in capitals.
'00B5FF'The colour of the currency in chat prefixes, as six hex digits. Example: '00B5FF'.
''Set this to fade the colour above into a second one, for a gradient name. Empty = one solid colour. Example: '72D6FF' fades from the colour to this one.
trueHow big amounts are written.
true = 1.5K, 2.3M false = the whole number with separators, 1,500
Players can always type whole numbers in full.
''Write every amount your own way. Empty = the automatic style: the symbol and the number when there is a symbol, otherwise the number and the name. You can use %number% %currency% %currency_singular% %currency_plural% %symbol% %code%. Example: '%number% %code%' writes 1.5K PTS.
'%currency_tag% &8| 'Text shown in front of every chat message from this plugin. Name the currency here, not the plugin. & colour codes and &#RRGGBB work, and so do the words above.
falseUsed by updates. Do not edit. It marks that old settings were already copied in. If you set it to false, the next start copies them again and overwrites what you typed.
falseUsed by updates. Do not edit.
falseUsed by updates. Do not edit. It marks that old balances were already copied in.
falseUsed by updates. Do not edit. It marks that the settings, categories and counters of the old separate point shop plugin were already copied in.
ENLanguage of the messages. One of:
EN = English FR = French ES = Spanish
A message missing from a translation stays English. The currency name has its own translation setting, currency.localised.
--- Command --- The shop command (/pointshop) and the admin command (/dcurrency) are renamed in the commands: section that the plugin adds to the end of this file on its first start. You can rename any of the three in game with
/dcurrency command <old> <new>
which changes the name at once, saves it and keeps the command allowed in DCommands.
'points'The command players type, without the slash. Example: 'stars' gives /stars. Changing it works with /points reload, no restart needed.
[]Extra names for the same command. Example: ['pts', 'bal']. Pick names no other plugin uses.
--- Placeholders ---
'currency'The first word of the PlaceholderAPI placeholders, so %currency_balance% can become %gems_balance%. %currency_...%, %dcurrency_...% and %dpoints_...% keep working next to it. Works with /points reload.
--- Earning points --- How players get points without a shop or an admin.
1How many points a player gets each time a playtime reward is paid. 0 = no playtime rewards.
1How often the playtime reward is paid, in minutes. Example: 5 = every five minutes the player gets points-per-minute points (one payout, not times five). Playtime keeps counting every minute, so logging out in between loses nothing. The point shop prices assume about one point per minute of play. Raising this makes shop items cheaper to earn.
0Points for killing another player. 0 = nothing. Only kills that pass the kill-farming rules below are paid.
Stops players from farming kills on an alt or a friend. A kill that breaks a rule still happens, but the killer gets no points and no kill on the leaderboard. The rules also work when points-per-kill is 0, to keep the kill leaderboard honest.
truetrue = the rules below are used. false = every kill counts.
15Killing the same player again within this many minutes gives nothing. Example: 15 = one rewarded kill per victim every 15 minutes. 0 = rule off.
truetrue = killer and victim on the same IP address (an alt on your network) never give a reward.
20The most rewarded kills one player can get per hour. 0 = no limit.
--- Double points events --- A time when everything this plugin pays (the playtime reward and the kill reward above) is multiplied. Points that other plugins hand out, like vote rewards or quests, are not changed. This is switched off by default. Staff can also start one by hand with /points event start [minutes] [multiplier] and end it with /points event stop. A hand-started event is forgotten when the server restarts.
falsetrue = events can run, by schedule or by command. false = nothing is multiplied.
2How much the rewards are multiplied during a scheduled event. 2 = double, 3 = triple.
trueTell everyone in chat when an event starts and ends.
The times a scheduled event runs, each one written as DAY HH:MM-HH:MM on a 24 hour clock. The day is MONDAY to SUNDAY. If the end is earlier than the start the event runs past midnight. An entry that cannot be read is skipped and named in the console. Leave the list empty for no schedule.
UTCThe timezone the schedule is written in, like Europe/Berlin or America/New_York. A wrong name means UTC.
--- Point shop --- Players spend points on ranks, keys, tags and more with /pointshop. Everything below is the shop. Each category is one file in the pointshop/categories folder. To add one, copy a file there, rename it, then run /pointshop reload. How buying works: the points are taken from the player first, then your commands run from the console. The shop only charges the points. Anything your server has a command for can be sold. Owned items: an entry with a `permission` can be bought once, and shows as owned when the player has that permission. An entry without a `permission` can be bought again and again. To rename /pointshop or change its extra names, edit commands.pointshop, which the plugin adds to the end of this file on its first start.
truetrue = the point shop is on. false = /pointshop and its menus are off: the command only answers with the feature-disabled message below, nothing can be bought and the shop's files are left alone. Your categories and purchase counts stay where they are, so turning it back on loses nothing. Changing it works with /points reload, no restart needed.
'%currency_tag% &8| 'Text shown in front of every chat message from the point shop. & colour codes and &#RRGGBB work.
'lp user %player% permission set %permission% true'The console command that runs when a player buys a one-time entry that has no `commands` of its own. You can use: %player% %permission% Example: the default gives the permission with LuckPerms.
''Text that replaces %store% in an entry's lore, for example your web store address. Leave '' if you do not use %store%.
trueWhat /pointshop does when there is only one category.
true = it opens that category straight away false = it always shows the main menu first
The BACK button then returns to the menu the player came from, or just closes.
--- Background --- An item laid into every empty slot of the menus, so the buttons are not on an empty chest. Clicking it does nothing.
''The item, for example GRAY_STAINED_GLASS_PANE. '' = no background.
' '--- Item texts --- The lines under every category button in the main menu. You can use: %description% (the lines from the category file) %points_full% (what the player has, with the name or symbol) %points% (the bare number) %currency% (the name)
The lines under an item for sale, one list for each situation:
affordable = the player has enough points too-expensive = the player does not have enough owned = the player already has it info = the entry has `purchasable: false`. It is shown but not for sale.
You can use: %description% %price_full% %price% %points_full% %points% %missing_full% %currency% A category file can have its own entry-lore, which replaces this one for that category.
The word that replaces %status% in the lore, for each situation.
'&#FF5C5CSOLD OUT''GF521OWNED''�B5FFAVAILABLE''&#FF5C5CLOCKED''	B9B9BINFO'%expires% in a lore line shows how long an owned item has left, read from LuckPerms, for example "29d 23h 59m". It works for anything granted with a time limit, such as a rank given with "lp user %player% parent addtemp". The menu works out the time when it opens, so reopening it shows the current value. Something owned with no time limit shows the text below.
'Permanent'--- Limited stock --- Lets you sell an item only a set number of times. This is switched off by default. To limit an item, add `stock` to its entry in the category file:
stock: 20 how many can be bought in total (or per period, see below) stock-resets: daily never (default) = the stock never refills, daily = refills at midnight, weekly = refills Monday
Stock is shared by every player. When it runs out the item shows as sold out and cannot be bought. If a purchase fails after a unit was reserved, the unit goes back, so stock is never lost to a failed payment. Counters are kept in pointshop/stock.yml in this folder.
falsetrue = `stock` in the category files is used. false = every item is sold without a limit.
UTCWhere midnight is for daily and weekly refills. Use a name like Europe/Berlin. A wrong name means UTC.
Lines added under every limited item that is still in stock. You can use: %stock_left% (what is left) %stock% (the total) %resets% (the text from `resets` below)
The text for %resets%, one for each `stock-resets` setting.
''' &8(refills daily)'' &8(refills weekly)'--- Daily deal --- Every day one item from the shop is cheaper. The item changes at midnight, and it is the same item for every player. This is switched off by default.
falsetrue = a daily deal runs. false = every item costs its normal price.
25How much cheaper the item of the day is, in percent (1 to 95).
[]Which items can be the deal, written as category.entry (the category file name, a dot, the entry id). Example: ['keys.example', 'ranks.vip']. Empty = every item that can be bought can be picked.
UTCWhere midnight is. Use a name like Europe/Berlin. A wrong name means UTC.
Lines added under the item of the day. You can use: %percent% (the discount) %old_price_full% (the normal price)
--- Back button --- The button in a category that goes back to the main menu.
OAK_DOOR'<#00B5FF>Back</#72D6FF>'--- Messages --- Chat messages. & colour codes and &#RRGGBB work.
'&#FF5C5COnly a player can use that.''&#FF5C5CYou are not allowed to do that.''&#FF5C5CThis feature is disabled on this server.'Shown for every point shop command and click while enabled above is false.
'GF521Bought &f%item% GF521for &f%price_full%GF521. &7(%points_full% left)'You can use: %item% %price_full% %price% %points_full% %points% %currency%
'&7You already own &f%item%&7.''&#FF5C5C%item% is sold out.'You can use: %item%
'&#FF5C5CNot enough %currency%! &7(%price_full% needed, you have %points_full%)'You can use: %price_full% %points_full% %currency%
'GF521Reloaded &f%count% GF521categories.'You can use: %count% (how many categories were loaded)
--- Coming back from another menu --- Another menu can send a player here with the command `/pointshop return <key>`. `<key>` is one of the names below (only `shop` by default). The matching button then appears on the main menu, and clicking it runs `command` as the player. A key that is not listed shows no button, so players cannot make up their own. Opening /pointshop normally shows no such button.
`slot` is the button's place in the main menu, counted from 0 at the top left.
22OAK_DOOR'<#00B5FF>Back</#72D6FF>''shop'--- Where balances are saved ---
yamlHow balances are stored. One of:
yaml = a file in this folder (balances.yml). Needs nothing else. sqlite = a file in this folder (balances.db). Needs nothing else. mysql = a MySQL server, set up below mariadb = a MariaDB server, set up below mongodb = a MongoDB server, set up below
WARNING: changing the type does NOT move your balances. The new storage starts empty. Copy them over yourself before you switch. Use one server per database: two servers on the same data overwrite each other's changes.
''Optional: the whole connection as one address, instead of the settings below.
Example: jdbc:mysql://user:pass@host:3306/dpoints or mongodb://user:pass@host:27017/dpoints
If it works it is used. If it does not, the settings below are tried.
localhostOnly for mysql, mariadb and mongodb: the database server's address.
0The server's port. 0 = the normal one (3306, or 27017 for mongodb).
dpointsThe database name on the server.
''The login for the database server.
''''Extra connection options, without the leading ? or &. Example: useSSL=false for mysql, or authSource=admin for a mongodb user made in the admin database.
dpoints_Text put in front of every table this plugin creates, so it never mixes with another plugin's tables.
balancesThe file name for yaml (.yml) and sqlite (.db), inside this plugin's folder.
30How often changed balances are saved, in seconds. They are also saved when the plugin stops. If the server crashes, you lose at most this many seconds of changes.
--- Messages --- Chat messages. & colour codes and &#RRGGBB work. '' turns a message off. You can use these in messages:
%amount% the amount with the name or symbol, "1.5K points" or "✦1.5K"
%number% the number alone, "1.5K"
%currency% the name that fits the amount ("point" for 1, "points" for more)
%command% the command name from above
%player% %balance% %have% %action% %input% %rows% %skipped% %reason% where the message has them'&7You have �B5FF%amount%&7.''&f%player% &7has �B5FF%balance%&7.''&7Only players have a balance. Use &f/%command% <player>&7.''&7/%command% pay <player> <amount>'--- Help lines ---
'&7/%command% <player>''&7/%command% give|take|set <player> <amount> | event | reload | import-skript''&#FF5C5CYou are not allowed to do that.'--- Errors ---
'&#FF5C5CNo player called &f%player%&#FF5C5C has ever joined this server.''&#FF5C5C''%input%'' is not a whole number.''&#FF5C5CUse a positive number.''&#FF5C5COnly players can send %currency%.'--- /points pay ---
'&#FF5C5CYou cannot send %currency% to yourself.''&#FF5C5CYou only have &f%have%&#FF5C5C.''&#FF5C5CCould not send %amount% to &f%player%&#FF5C5C. Nothing was taken from you.''&7Sent �B5FF%amount% &7to &f%player%&7.''&f%player% &7sent you �B5FF%amount%&7.''&7/%command% pay <player> <amount>''&7/%command% %action% <player> <amount>'--- Staff commands (give, take, set, reload, import) ---
'GF521%player% &7now has �B5FF%balance%&7.''&f%player% &#FF5C5Conly has &f%have%&#FF5C5C.''&7You received GF521%amount%&7.''&7You lost &#FF5C5C%amount%&7.''GF521Settings reloaded.''&#FF5C5CThe balance of &f%player%&#FF5C5C was not changed: another plugin blocked it, or saving is stopping.''GF521Imported &f%rows%GF521 balances from Skript&7 (%skipped% rows skipped).''&#FF5C5CImport failed: &f%reason%''&7/%admin% rename <name> [plural] [symbol] | preview | command <old> <new>'--- /dcurrency (rename the currency and its commands) --- You can use: %admin% (the admin command name)
'&7/dcurrency rename <name> [plural] [symbol]. Use _ for a space and - for no symbol.''&#FF5C5CA name takes 1 to 24 characters and a symbol up to 4. Colour codes and the characters < > are not allowed.''GF521The currency is now called &f%currency_singular% GF521(&f%currency_plural%GF521), symbol &f%symbol%GF521.'You can use: %currency_singular% %currency_plural% %symbol%
'&7Names: &f1 %currency_singular% &8| &f2 %currency_plural%'You can use: %one% %many% %big% %command%
'&7Amounts: &f%one% &8| &f%many% &8| &f%big%''&7Players type &f/%command%&7.''&7/dcurrency command <old> <new>''GF521/%old% is now /%new%.'You can use: %old% %new% %names% (the commands of this currency)
'&#FF5C5C/%old% is not a command of this currency. Yours: &f%names%''&#FF5C5CA command name takes 1 to 32 lower case letters, digits, _ or -.''&#FF5C5C/%new% already belongs to another command.''&#FF5C5C/%old% already has that name.''&#FF5C5CThis command is renamed in the config.yml of the all-in-one jar, not here.''&fDouble %currency_plural% event started: all %currency_plural% rewards are multiplied by �B5FF%multiplier%&f.'--- Double events --- You can use: %multiplier%
'&7The double %currency_plural% event is over.''&#FF5C5CDouble %currency_plural% events are switched off in the settings.''&7/%command% event start [minutes] [multiplier] | stop | status''GF521Event started for %minutes% minutes at x%multiplier%.'You can use: %minutes% %multiplier%
'GF521Event stopped.''&7No event is running.''&7An event is running at x%multiplier%.''�B5FF» &fClick &7to edit''Open''Point shop''&8│ &7Items &f%count%''Category %id%''Items''Menu rows''Shimmer''Item''&#FF4D6DThe name cannot be empty.''Counted from 0 at the top left.''Item %id%''&8│ &7Price &f%price% &8(place %slot%)''Name''Price in points''Place in the menu''Commands''Run from the console after a purchase. %player% is the buyer.''Description lines''Permission''Set it to sell the item once per player. Empty = can be bought again and again.''Colour code''Can be bought'# Currency: the server's second currency. Its name, how it is written, how players earn it and where balances# are saved.# Edit, then run /points reload. A setting you delete comes back with its default, so change values instead.# Help and support: https://discord.devamy.net or dstudios@devamy.net## The point shop further down and other plugins read the name and format from here, so renaming it here# renames it everywhere.# Placeholders for TAB, holograms and scoreboards (the first word can be changed with placeholders.identifier):# %currency_balance% short number, 1.5K# %currency_balance_raw% every digit, 1500# %currency_balance_formatted% with the name or symbol, 1.5K Points# %currency_balance_amount% with the symbol if one is set, else 1.5K# %currency_next% time until the next playtime reward, 4m# %currency_currency% the plural name (%currency_currency_singular% = the singular name)# %currency_symbol% and %currency_code% the symbol and the short code# The older %dcurrency_...% and %dpoints_...% placeholders still work.# --- Currency ---# What your currency is called and how it looks. Change it here, or in game with# /dcurrency rename <name> [plural] [symbol]# The name, the symbol and the colour reach every message, menu and placeholder, and balances are never touched.# Use /dcurrency preview to see how it reads. These words can be used in any text of this file:# %currency% the name that fits the amount: "Point" for 1, "Points" for more# %currency_singular% always the singular name# %currency_plural% always the plural name# %currency_upper% the plural name in capitals, POINTS# %currency_small% the singular name in small capitals, for menu titles# %currency_tag% the plural name in capitals, bold and in the colour below, for chat prefixes# %currency_color% only the colour code# %symbol% the symbol below, empty when there is none# %code% the short code below, or the plural name in capitals when there is nonecurrency:# The name for one unit and for several. Used in sentences like "You have 1 Point" and "You sent 5 Points".singular: 'Point'plural: 'Points'# A language other than English: when the server language is set to ES or FR and singular and plural above# are still the defaults, these names are used instead. They are filled in by the translation file in# lang/es and lang/fr, where you can change them. A name you type above always wins.localised:singular: ''plural: ''# A short sign written with every amount instead of the name.# Example: '✦' gives ✦1.5K. Leave '' to write the name instead ("1.5K Points").symbol: ''# Where the symbol goes. Only matters when a symbol is set.# before = ✦1.5K# after = 1.5K✦symbol-position: before# A short code for the currency, like PTS or GEM. Empty = %code% shows the plural name in capitals.code: ''# The colour of the currency in chat prefixes, as six hex digits. Example: '00B5FF'.color: '00B5FF'# Set this to fade the colour above into a second one, for a gradient name. Empty = one solid colour.# Example: '72D6FF' fades from the colour to this one.color-end: ''# How big amounts are written.# true = 1.5K, 2.3M# false = the whole number with separators, 1,500# Players can always type whole numbers in full.compact-numbers: true# Write every amount your own way. Empty = the automatic style: the symbol and the number when there is a# symbol, otherwise the number and the name. You can use %number% %currency% %currency_singular% %currency_plural% %symbol% %code%.# Example: '%number% %code%' writes 1.5K PTS.amount-format: ''# Text shown in front of every chat message from this plugin.# Name the currency here, not the plugin. & colour codes and &#RRGGBB work, and so do the words above.prefix: '%currency_tag% &8| '# Permissions are not renamed with the currency. The nodes stay dcurrency.use, dcurrency.pay, dcurrency.others,# dcurrency.admin and dcurrency.shop.admin, so renaming the currency never changes who can do what.# To hand them out under your own names, create a permission with your own name in LuckPerms (for example# gems.use) and add the dcurrency node as a child of it. The old dpoints.* nodes keep working the same way.# Used by updates. Do not edit.config-version: 1# Used by updates. Do not edit. It marks that old settings were already copied in.# If you set it to false, the next start copies them again and overwrites what you typed.imported-from-dcore: false# Used by updates. Do not edit.imported-kill-farming-from-dcore: false# Used by updates. Do not edit. It marks that old balances were already copied in.imported-from-dcore-store: false# Used by updates. Do not edit. It marks that the settings, categories and counters of the old separate# point shop plugin were already copied in.imported-from-dpointshop: false# Language of the messages. One of:# EN = English# FR = French# ES = Spanish# A message missing from a translation stays English. The currency name has its own translation setting,# currency.localised.language: EN# --- Command ---# The shop command (/pointshop) and the admin command (/dcurrency) are renamed in the commands: section that the# plugin adds to the end of this file on its first start. You can rename any of the three in game with# /dcurrency command <old> <new># which changes the name at once, saves it and keeps the command allowed in DCommands.command:# The command players type, without the slash. Example: 'stars' gives /stars.# Changing it works with /points reload, no restart needed.name: 'points'# Extra names for the same command. Example: ['pts', 'bal'].# Pick names no other plugin uses.aliases: []# --- Placeholders ---placeholders:# The first word of the PlaceholderAPI placeholders, so %currency_balance% can become %gems_balance%.# %currency_...%, %dcurrency_...% and %dpoints_...% keep working next to it. Works with /points reload.identifier: 'currency'# --- Earning points ---# How players get points without a shop or an admin.rewards:# How many points a player gets each time a playtime reward is paid. 0 = no playtime rewards.points-per-minute: 1# How often the playtime reward is paid, in minutes.# Example: 5 = every five minutes the player gets points-per-minute points (one payout, not times five).# Playtime keeps counting every minute, so logging out in between loses nothing.# The point shop prices assume about one point per minute of play. Raising this makes shop items cheaper# to earn.every-minutes: 1# Points for killing another player. 0 = nothing.# Only kills that pass the kill-farming rules below are paid.points-per-kill: 0# Stops players from farming kills on an alt or a friend.# A kill that breaks a rule still happens, but the killer gets no points and no kill on the leaderboard.# The rules also work when points-per-kill is 0, to keep the kill leaderboard honest.kill-farming:# true = the rules below are used. false = every kill counts.enabled: true# Killing the same player again within this many minutes gives nothing.# Example: 15 = one rewarded kill per victim every 15 minutes. 0 = rule off.same-victim-cooldown-minutes: 15# true = killer and victim on the same IP address (an alt on your network) never give a reward.ignore-same-ip: true# The most rewarded kills one player can get per hour. 0 = no limit.max-rewarded-kills-per-hour: 20# --- Double points events ---# A time when everything this plugin pays (the playtime reward and the kill reward above) is multiplied.# Points that other plugins hand out, like vote rewards or quests, are not changed. This is switched off by default.# Staff can also start one by hand with /points event start [minutes] [multiplier] and end it with# /points event stop. A hand-started event is forgotten when the server restarts.double-points:# true = events can run, by schedule or by command. false = nothing is multiplied.enabled: false# How much the rewards are multiplied during a scheduled event. 2 = double, 3 = triple.multiplier: 2# Tell everyone in chat when an event starts and ends.announce: true# The times a scheduled event runs, each one written as DAY HH:MM-HH:MM on a 24 hour clock.# The day is MONDAY to SUNDAY. If the end is earlier than the start the event runs past midnight.# An entry that cannot be read is skipped and named in the console. Leave the list empty for no schedule.schedule:- 'SATURDAY 14:00-18:00'- 'SUNDAY 14:00-18:00'# The timezone the schedule is written in, like Europe/Berlin or America/New_York. A wrong name means UTC.timezone: UTC# --- Point shop ---# Players spend points on ranks, keys, tags and more with /pointshop. Everything below is the shop.# Each category is one file in the pointshop/categories folder. To add one, copy a file there, rename it,# then run /pointshop reload.# How buying works: the points are taken from the player first, then your commands run from the console.# The shop only charges the points. Anything your server has a command for can be sold.# Owned items: an entry with a `permission` can be bought once, and shows as owned when the player has that# permission. An entry without a `permission` can be bought again and again.# To rename /pointshop or change its extra names, edit commands.pointshop, which the plugin adds to the end# of this file on its first start.pointshop:# true = the point shop is on. false = /pointshop and its menus are off: the command only answers with# the feature-disabled message below, nothing can be bought and the shop's files are left alone.# Your categories and purchase counts stay where they are, so turning it back on loses nothing.# Changing it works with /points reload, no restart needed.enabled: true# Text shown in front of every chat message from the point shop. & colour codes and &#RRGGBB work.prefix: '%currency_tag% &8| '# The console command that runs when a player buys a one-time entry that has no `commands` of its own.# You can use: %player% %permission%# Example: the default gives the permission with LuckPerms.grant-command: 'lp user %player% permission set %permission% true'# Text that replaces %store% in an entry's lore, for example your web store address.# Leave '' if you do not use %store%.store-link: ''# What /pointshop does when there is only one category.# true = it opens that category straight away# false = it always shows the main menu first# The BACK button then returns to the menu the player came from, or just closes.single-category-direct: true# --- Main menu ---# The first menu: one button per category.menu:# Title at the top of the menu.title: '&8%currency_small% ꜱʜᴏᴘ'# Height of the menu in rows, 1 to 6.rows: 3# Extra buttons next to the categories, like an info item or a link to another menu. Empty = none.# Each one needs a `slot`. It can also have: material, name, lore, glow (shimmer),# owner-head (true shows the player's own head on a PLAYER_HEAD) and command (runs as the player on click).# You can use: %player% and any PlaceholderAPI placeholder.items: {}# --- Background ---# An item laid into every empty slot of the menus, so the buttons are not on an empty chest.# Clicking it does nothing.filler:# The item, for example GRAY_STAINED_GLASS_PANE. '' = no background.material: ''name: ' '# --- Item texts ---# The lines under every category button in the main menu.# You can use: %description% (the lines from the category file)# %points_full% (what the player has, with the name or symbol) %points% (the bare number) %currency% (the name)category-lore:- '%description%'- ''- '�B5FF» &fClick &7to open'# The lines under an item for sale, one list for each situation:# affordable = the player has enough points# too-expensive = the player does not have enough# owned = the player already has it# info = the entry has `purchasable: false`. It is shown but not for sale.# You can use: %description% %price_full% %price% %points_full% %points% %missing_full% %currency%# A category file can have its own entry-lore, which replaces this one for that category.entry-lore:sold-out:- '%description%'- ''- '&8│ &#FF5C5CSold out'affordable:- '%description%'- ''- '&8│ &7Price GF521%price_full%'- '&8│ &7You have GF521%points_full%'- ''- '�B5FF» &fClick &7to buy'too-expensive:- '%description%'- ''- '&8│ &7Price GF521%price_full%'- '&8│ &#FF5C5C✕ Missing %missing_full%'owned:- '%description%'- ''- '&8│ GF521You already own this'info:- '%description%'- ''- '&8│ &7This rank cannot be bought.'# The word that replaces %status% in the lore, for each situation.status:sold-out: '&#FF5C5CSOLD OUT'owned: 'GF521OWNED'affordable: '�B5FFAVAILABLE'too-expensive: '&#FF5C5CLOCKED'info: '	B9B9BINFO'# %expires% in a lore line shows how long an owned item has left, read from# LuckPerms, for example "29d 23h 59m". It works for anything granted with a# time limit, such as a rank given with "lp user %player% parent addtemp".# The menu works out the time when it opens, so reopening it shows the# current value. Something owned with no time limit shows the text below.time-left:permanent: 'Permanent'# --- Limited stock ---# Lets you sell an item only a set number of times. This is switched off by default.# To limit an item, add `stock` to its entry in the category file:# stock: 20 how many can be bought in total (or per period, see below)# stock-resets: daily never (default) = the stock never refills, daily = refills at midnight, weekly = refills Monday# Stock is shared by every player. When it runs out the item shows as sold out and cannot be bought.# If a purchase fails after a unit was reserved, the unit goes back, so stock is never lost to a failed payment.# Counters are kept in pointshop/stock.yml in this folder.limited-stock:# true = `stock` in the category files is used. false = every item is sold without a limit.enabled: false# Where midnight is for daily and weekly refills. Use a name like Europe/Berlin. A wrong name means UTC.timezone: UTC# Lines added under every limited item that is still in stock.# You can use: %stock_left% (what is left) %stock% (the total) %resets% (the text from `resets` below)lore:- '&8│ &7Only �E5FF%stock_left% &7left%resets%'# The text for %resets%, one for each `stock-resets` setting.resets:never: ''daily: ' &8(refills daily)'weekly: ' &8(refills weekly)'# --- Daily deal ---# Every day one item from the shop is cheaper. The item changes at midnight, and it is the same item for# every player. This is switched off by default.daily-deal:# true = a daily deal runs. false = every item costs its normal price.enabled: false# How much cheaper the item of the day is, in percent (1 to 95).discount-percent: 25# Which items can be the deal, written as category.entry (the category file name, a dot, the entry id).# Example: ['keys.example', 'ranks.vip']. Empty = every item that can be bought can be picked.entries: []# Where midnight is. Use a name like Europe/Berlin. A wrong name means UTC.timezone: UTC# Lines added under the item of the day.# You can use: %percent% (the discount) %old_price_full% (the normal price)lore:- ''- '&8│ �E5FFDaily deal &7-%percent%% &8(was %old_price_full%)'# --- Back button ---# The button in a category that goes back to the main menu.back:material: OAK_DOORname: '<#00B5FF>Back</#72D6FF>'lore:- '&8│ &7To the previous menu'# --- Messages ---# Chat messages. & colour codes and &#RRGGBB work.messages:players-only: '&#FF5C5COnly a player can use that.'no-permission: '&#FF5C5CYou are not allowed to do that.'# Shown for every point shop command and click while enabled above is false.feature-disabled: '&#FF5C5CThis feature is disabled on this server.'# You can use: %item% %price_full% %price% %points_full% %points% %currency%bought: 'GF521Bought &f%item% GF521for &f%price_full%GF521. &7(%points_full% left)'already-owned: '&7You already own &f%item%&7.'# You can use: %item%sold-out: '&#FF5C5C%item% is sold out.'# You can use: %price_full% %points_full% %currency%not-enough: '&#FF5C5CNot enough %currency%! &7(%price_full% needed, you have %points_full%)'# You can use: %count% (how many categories were loaded)reloaded: 'GF521Reloaded &f%count% GF521categories.'# --- Coming back from another menu ---# Another menu can send a player here with the command `/pointshop return <key>`.# `<key>` is one of the names below (only `shop` by default). The matching button then# appears on the main menu, and clicking it runs `command` as the player.# A key that is not listed shows no button, so players cannot make up their own.# Opening /pointshop normally shows no such button.returns:# `slot` is the button's place in the main menu, counted from 0 at the top left.shop:slot: 22material: OAK_DOORname: '<#00B5FF>Back</#72D6FF>'lore:- '&8│ &7To the shop'command: 'shop'# --- Where balances are saved ---database:# How balances are stored. One of:# yaml = a file in this folder (balances.yml). Needs nothing else.# sqlite = a file in this folder (balances.db). Needs nothing else.# mysql = a MySQL server, set up below# mariadb = a MariaDB server, set up below# mongodb = a MongoDB server, set up below# WARNING: changing the type does NOT move your balances. The new storage starts empty.# Copy them over yourself before you switch.# Use one server per database: two servers on the same data overwrite each other's changes.type: yaml# Optional: the whole connection as one address, instead of the settings below.# Example: jdbc:mysql://user:pass@host:3306/dpoints or mongodb://user:pass@host:27017/dpoints# If it works it is used. If it does not, the settings below are tried.url: ''# Only for mysql, mariadb and mongodb: the database server's address.host: localhost# The server's port. 0 = the normal one (3306, or 27017 for mongodb).port: 0# The database name on the server.database: dpoints# The login for the database server.username: ''password: ''# Extra connection options, without the leading ? or &.# Example: useSSL=false for mysql, or authSource=admin for a mongodb user made in the admin database.parameters: ''# Text put in front of every table this plugin creates, so it never mixes with another plugin's tables.table-prefix: dpoints_# The file name for yaml (.yml) and sqlite (.db), inside this plugin's folder.file: balances# How often changed balances are saved, in seconds. They are also saved when the plugin stops.# If the server crashes, you lose at most this many seconds of changes.save-interval-seconds: 30# --- Messages ---# Chat messages. & colour codes and &#RRGGBB work. '' turns a message off.# You can use these in messages:# %amount% the amount with the name or symbol, "1.5K points" or "✦1.5K"# %number% the number alone, "1.5K"# %currency% the name that fits the amount ("point" for 1, "points" for more)# %command% the command name from above# %player% %balance% %have% %action% %input% %rows% %skipped% %reason% where the message has themmessages:balance-self: '&7You have �B5FF%amount%&7.'balance-other: '&f%player% &7has �B5FF%balance%&7.'balance-console: '&7Only players have a balance. Use &f/%command% <player>&7.'# --- Help lines ---help-pay: '&7/%command% pay <player> <amount>'help-others: '&7/%command% <player>'help-admin: '&7/%command% give|take|set <player> <amount> | event | reload | import-skript'# --- Errors ---no-permission: '&#FF5C5CYou are not allowed to do that.'unknown-player: '&#FF5C5CNo player called &f%player%&#FF5C5C has ever joined this server.'not-a-number: '&#FF5C5C''%input%'' is not a whole number.'not-positive: '&#FF5C5CUse a positive number.'# --- /points pay ---pay-players-only: '&#FF5C5COnly players can send %currency%.'pay-self: '&#FF5C5CYou cannot send %currency% to yourself.'pay-insufficient: '&#FF5C5CYou only have &f%have%&#FF5C5C.'pay-failed: '&#FF5C5CCould not send %amount% to &f%player%&#FF5C5C. Nothing was taken from you.'pay-sent: '&7Sent �B5FF%amount% &7to &f%player%&7.'pay-received: '&f%player% &7sent you �B5FF%amount%&7.'usage-pay: '&7/%command% pay <player> <amount>'# --- Staff commands (give, take, set, reload, import) ---usage-admin: '&7/%command% %action% <player> <amount>'admin-done: 'GF521%player% &7now has �B5FF%balance%&7.'take-insufficient: '&f%player% &#FF5C5Conly has &f%have%&#FF5C5C.'received-notice: '&7You received GF521%amount%&7.'lost-notice: '&7You lost &#FF5C5C%amount%&7.'reloaded: 'GF521Settings reloaded.'change-refused: '&#FF5C5CThe balance of &f%player%&#FF5C5C was not changed: another plugin blocked it, or saving is stopping.'skript-imported: 'GF521Imported &f%rows%GF521 balances from Skript&7 (%skipped% rows skipped).'skript-failed: '&#FF5C5CImport failed: &f%reason%'# --- /dcurrency (rename the currency and its commands) ---# You can use: %admin% (the admin command name)admin-usage: '&7/%admin% rename <name> [plural] [symbol] | preview | command <old> <new>'rename-usage: '&7/dcurrency rename <name> [plural] [symbol]. Use _ for a space and - for no symbol.'rename-invalid: '&#FF5C5CA name takes 1 to 24 characters and a symbol up to 4. Colour codes and the characters < > are not allowed.'# You can use: %currency_singular% %currency_plural% %symbol%rename-done: 'GF521The currency is now called &f%currency_singular% GF521(&f%currency_plural%GF521), symbol &f%symbol%GF521.'# You can use: %one% %many% %big% %command%preview-names: '&7Names: &f1 %currency_singular% &8| &f2 %currency_plural%'preview-amounts: '&7Amounts: &f%one% &8| &f%many% &8| &f%big%'preview-command: '&7Players type &f/%command%&7.'command-usage: '&7/dcurrency command <old> <new>'# You can use: %old% %new% %names% (the commands of this currency)command-done: 'GF521/%old% is now /%new%.'command-unknown: '&#FF5C5C/%old% is not a command of this currency. Yours: &f%names%'command-invalid: '&#FF5C5CA command name takes 1 to 32 lower case letters, digits, _ or -.'command-taken: '&#FF5C5C/%new% already belongs to another command.'command-same: '&#FF5C5C/%old% already has that name.'command-embedded: '&#FF5C5CThis command is renamed in the config.yml of the all-in-one jar, not here.'# --- Double events ---# You can use: %multiplier%double-start: '&fDouble %currency_plural% event started: all %currency_plural% rewards are multiplied by �B5FF%multiplier%&f.'double-end: '&7The double %currency_plural% event is over.'event-disabled: '&#FF5C5CDouble %currency_plural% events are switched off in the settings.'event-usage: '&7/%command% event start [minutes] [multiplier] | stop | status'# You can use: %minutes% %multiplier%event-started: 'GF521Event started for %minutes% minutes at x%multiplier%.'event-stopped: 'GF521Event stopped.'event-none: '&7No event is running.'event-active: '&7An event is running at x%multiplier%.'editor-click: '�B5FF» &fClick &7to edit'editor-open: 'Open'editor-shop-title: 'Point shop'editor-shop-entries: '&8│ &7Items &f%count%'editor-shop-category: 'Category %id%'editor-shop-items: 'Items'editor-shop-button-name: 'Button name'editor-shop-button-slot: 'Button place'editor-shop-button-lore: 'Button lines'editor-shop-menu-title: 'Menu title'editor-shop-rows: 'Menu rows'editor-glow: 'Shimmer'editor-material: 'Item'editor-name-empty: '&#FF4D6DThe name cannot be empty.'editor-slot-hint: 'Counted from 0 at the top left.'editor-shop-entry: 'Item %id%'editor-shop-entry-price: '&8│ &7Price &f%price% &8(place %slot%)'editor-name: 'Name'editor-shop-price: 'Price in points'editor-shop-slot: 'Place in the menu'editor-shop-commands: 'Commands'editor-shop-commands-hint: 'Run from the console after a purchase. %player% is the buyer.'editor-shop-lore: 'Description lines'editor-shop-permission: 'Permission'editor-shop-permission-hint: 'Set it to sell the item once per player. Empty = can be bought again and again.'editor-shop-colour: 'Colour code'editor-shop-purchasable: 'Can be bought'
DCore
PlaceholderAPI, LuckPerms. LuckPerms only matters to the point shop: its default purchase command gives the bought permission with it, and owned ranks show their time left from it.
Paper 1.21 or newer, and forks like Purpur and Leaf. Folia is supported. Java 21 or newer.