currency.yml
Configure the game economy. This file controls the currency name, symbol, starting balances, and event-based rewards/penalties.
Where to find it
Generated after the first server start:
plugins/Zentrix/currency.yml
What you edit here
Currency display name and symbol
Default starting balance for new players
Player balance command name and aliases (
/coins,/bal, etc.)Event reward and penalty amounts (positive = reward, negative = penalty)
Which actions grant or deduct currency
Event rewards are optional. Remove or comment out any event you don't want to use. Spectators never receive currency rewards.
Introduction
currency.yml centralizes all economy-related configuration for matches. Use it to adjust how much players earn for kills, placements, class triggers, and other game events. Values are literal integers and apply immediately when the corresponding in-game event fires.
Rules & behavior for event values
Positive values add currency.
Negative values deduct currency (penalty). Balances will not go below
0.Commenting out an event (prefix with
#) disables that reward/penalty.Spectators: events do not grant currency to spectators.
Atomicity: each event applies independently; multiple events may add up for a single action (e.g., first-blood + player-kill).
File structure
Everything lives under the currency: key.
command: controls the player balance command.
events: lists per-event reward/penalty amounts.
Configuration fields
display-name
display-nameThe name shown in chat and GUI for the currency. Use color codes if desired.
symbol
symbolA short symbol shown next to amounts (e.g., ⛃ 100).
starting-balance
starting-balanceThe default balance assigned to new players joining for the first time.
command
commandControls the player balance command (the command players run to view their own coins).
This does not affect admin economy commands like /zentrix currency set. See: Currency Commands.
command.name
The primary command name.
Default:
/coins
command.aliases
Optional aliases for the same balance command.
Default:
/bal/balance
Pick a command that doesn’t conflict with other plugins.
If you change command.name, restart the server so the command re-registers cleanly.
events
eventsA keyed list of in-game events and the integer amount awarded or deducted when they occur.
Positive number — add currency.
Negative number — deduct currency (penalty).
Comment out to disable.
Examples:
Event categories (explanation)
Game Lifecycle
game-win— Award for winning a match.game-join— Small reward for joining a lobby.game-leave— Penalty for leaving mid-game.
Combat Actions
player-kill— Reward for eliminating an opponent.player-death— Penalty on elimination.first-blood— Bonus for the first kill in the match.
Survival & Ranking
survives-deathmatch— Reward for surviving until Deathmatch starts.reaches-top-5/reaches-top-3— Placement rewards.
Class Abilities
class-select— Reward for choosing a class in the lobby.warrior-true-damage,archer-bow-buff, etc. — Small rewards tied to ability triggers.
Crafting & Misc
crafts-custom-recipe— Reward for crafting custom recipes.crafts-first-time— Bonus for crafting a particular recipe the first time.last-team-member— Reward for being the last surviving member of a team.
Be careful with large positive values on frequent events (like player-kill) — they can inflate your economy quickly. Tune slowly and test in real matches.
Example breakdown: combat & placement
A typical setup:
A player who gets the first kill and later finishes top 3 would receive both
first-bloodandreaches-top-3rewards.If a player leaves mid-game,
game-leaveapplies and their balance will not drop below0.
Full configuration
Last updated