π Month Date Totals
π§ͺ Feature Overview
This feature is still a WIP, but is considered stable for general use.
By default, VotingPlugin stores monthly totals under the key MonthTotal, which resets automatically each month.
However, this default system doesnβt preserve previous monthsβ totals after a reset.
The Month Date Totals system introduces a new format:
MonthTotal-MONTH-YEAR, for example:
MonthTotal-DECEMBER-2024
This allows VotingPlugin to:
- β Automatically reset monthly totals instantly on the first of each month
- π Keep a full history of past monthsβ totals (viewable anytime)
- π Keep the standard
MonthTotalvalue in sync for legacy features
π Example Behavior
| Setting | Behavior |
|---|---|
| Disabled (default) | Uses a single MonthTotal key, resets each month, overwriting prior data. |
| Enabled | Stores month totals in the format MonthTotal-MONTH-YEAR and automatically updates MonthTotal. |
π§Ύ Command
Use /vote previousmonthtotals
β Lists all previous months with available vote total data.
βοΈ Configuration Example
###########################################
# Month Date Totals
# Experimental feature
# Same options apply for proxy servers
###########################################
# Copies MonthTotal into a new format (MonthTotal-MONTH-YEAR)
# Safe to enable; keeps MonthTotal synced
StoreMonthTotalsWithDate: false
# Uses MonthTotal-MONTH-YEAR as the active total tracker
# Requires StoreMonthTotalsWithDate enabled
# Early-stage feature; may still have minor bugs
UseMonthDateTotalsAsPrimaryTotal: false
π Notes
- Enabling
StoreMonthTotalsWithDateis safe and recommended for networks wanting monthly tracking history. - Enabling
UseMonthDateTotalsAsPrimaryTotalswitches all total tracking to this new date-based format β only enable this if you understand the implications. - Both options support proxy setups and automatically synchronize across servers when
GlobalDatais enabled.
π§ Tip: Keep
StoreMonthTotalsWithDateenabled even if you donβt use the new system yet β it future-proofs your data with no downside. {.is-info}