Grind Summary
On this page(5)
Every minute (by default), each player who earned something gets a short chat summary. It has one
line per currency gained, and a line whose hover lists what activated. Players see at a glance what
their grind paid. Each player can switch it off in /settings.
| Files | summary: of config.yml, messages.summary of lang/messages_en.yml |
| Player setting | core.grind-summary (Chat tab of /settings) |
| Switch | summary.enabled + /dungeons reload |
How it works
- While a player fights, the plugin counts what they gain and what activated, in memory.
- Every
summary.interval-seconds, each player who gained a shown currency in that time gets the summary. A player who gained nothing gets nothing. - The counters start again from zero. Nothing is stored.
The summary has three parts:
- A header with the interval.
- One gain line per currency gained.
- A hover line. Its hover lists the activations, each with its hits, damage, kills and what it
paid:
- the sword's own swings,
- the AFK clones, when they hit,
- each hero that hit,
- one line per enchant that activated, most procs first.
A player with core.grind-summary off gets no summary, and nothing of theirs is counted while it
stays off. Another plugin can cancel a summary through the Developer API.
Configuration
summary:
enabled: true
interval-seconds: 60
currencies: []| Key | Default | What it does |
|---|---|---|
summary.enabled | true | false sends no summary to anyone. Each player can also switch theirs off |
summary.interval-seconds | 60 | Seconds between two summaries, 10 to 3600 |
summary.currencies | [] | The currency ids the summary shows. [] = every currency gained |
Re-read on /dungeons reload.
Messages
The texts are messages.summary of lang/messages_en.yml. They are sent without the prefix. A line
set to '' is not sent.
| Key | Placeholders | What it is |
|---|---|---|
header | {seconds} | The first line |
gain | {amount}, {currency} | One line per currency gained |
hover | The line that carries the hover | |
hover-header | {seconds} | The first line of the hover |
hover-swing | {hits}, {damage}, {kills}, {gains} | The sword's own swings |
hover-afk | {hits}, {damage}, {kills}, {gains} | The AFK clones, only while some clone hit |
hover-hero | {hero}, {hits}, {damage}, {kills}, {gains} | Each hero that hit ({hero} is its id) |
hover-enchant | {enchant}, {procs}, {damage}, {kills}, {gains} | One line per enchant that activated |
hover-gain | {amount}, {currency} | One piece of {gains}: what that source paid in one currency |
hover-empty | Shown in the hover when no enchant activated |
The kills of an enchant pay for that enchant, so its line shows what its own hits earned.
Tips
- On a busy server, set
summary.currenciesto the currencies players care about, such as['money', 'souls']. - A longer
interval-secondsgives fewer, bigger summaries. The minimum is 10 seconds. - Set
hover-emptyto''to send nothing in the hover when no enchant activated. - Switch the summary off for everyone with
summary.enabled: false, or lock the setting withlocked: trueanddefault: falseinsettings.yml.
Default summary block and messages
config.yml
# ------------------------------------------------------------
# Grind summary: every interval-seconds each player who gained something
# gets one chat line per currency gained and a line whose hover lists the
# sword and every enchant that activated (procs, damage, kills and what each
# one paid). The texts are messages.summary in lang/messages_en.yml.
# Re-read on /dungeons reload.
# ------------------------------------------------------------
summary:
# false sends no summary to anyone.
enabled: true
# Seconds between two summaries (10 to 3600).
interval-seconds: 60
# Currency ids the summary shows; [] = every currency gained.
currencies: []lang/messages_en.yml
# The grind summary (summary: of config.yml), sent every
# summary.interval-seconds to each player who gained something, without the
# prefix. {seconds} is the interval. A line set to '' is not sent.
summary:
header: "&6&lGRIND SUMMARY &7({seconds}s)"
# One line per currency gained: {amount} and {currency}.
gain: "&7 + &a{amount} &f{currency}"
# The line whose hover lists the activations.
hover: "&e&nHover to view activation summary!"
# The hover: a header, the sword's own swings, then one line per enchant
# (most procs first). {gains} is one hover-gain per currency that source
# paid (the kills of an enchant pay for that enchant).
hover-header: "&6&lActivations &7(last {seconds}s)"
hover-swing: "&fSword&7: {hits} hits, &c{damage} &7damage, &f{kills} &7kills{gains}"
# The clones of the afk module (only while some clone hit in the window).
hover-afk: "&7AFK clones&7: {hits} hits, &c{damage} &7damage, &f{kills} &7kills{gains}"
# Each hero of the heroes module that hit in the window ({hero}: its id).
hover-hero: "&6Hero {hero}&7: {hits} hits, &c{damage} &7damage, &f{kills} &7kills{gains}"
hover-enchant: "{enchant}&7: &f{procs} &7procs, &c{damage} &7damage, &f{kills} &7kills{gains}"
hover-gain: "&7, &a+{amount} {currency}"
# Sent in the hover when no enchant activated.
hover-empty: "&7No enchant activated."