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

circle-info

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

The name shown in chat and GUI for the currency. Use color codes if desired.

symbol

A short symbol shown next to amounts (e.g., ⛃ 100).

starting-balance

The default balance assigned to new players joining for the first time.

command

Controls 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

circle-exclamation

events

A 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.

circle-exclamation

Example breakdown: combat & placement

A typical setup:

  • A player who gets the first kill and later finishes top 3 would receive both first-blood and reaches-top-3 rewards.

  • If a player leaves mid-game, game-leave applies and their balance will not drop below 0.

Full configuration

chevron-rightExpand: default currency.ymlhashtag

Last updated