Skip to content

[Feature Request] Extend "Special-Dates" to support date ranges / 为 Special-Dates 增加日期范围支持 #62

@AsagiriBeta

Description

@AsagiriBeta

感谢维护此插件。

目前 Special-Dates 仅支持 MM-dd 格式的单日配置。为连续时段(如5月1日至5日)设置奖励需逐日添加独立条目,配置较为冗长,维护不便。

建议增强:Special-Dates 中支持以 ~ 分隔的日期范围写法。示例:

Special-Dates:
    '05-01~05-05':
        Override-default-rewards: false
        Messages: 
        - '{prefix}&a劳动节活动进行中,额外奖励已发放!'
        Reward-Items:
        - 'diamond:5'
        - 'golden_apple:2'

这样可避免重复逐日配置,同时保持现有奖励结构不变。请考虑此请求。


Thank you for maintaining this plugin.

Currently, Special-Dates only supports single-day configuration in MM-dd format. Setting up rewards for a continuous period (e.g., May 1st–5th) requires adding each day as a separate entry, which makes the configuration verbose and harder to maintain.

Proposed enhancement: Support date range notation using ~ separator within Special-Dates. Example:

Special-Dates:
    '05-01~05-05':
        Override-default-rewards: false
        Messages: 
        - '{prefix}&aLabor Day event active! Enjoy your bonus rewards!'
        Reward-Items:
        - 'diamond:5'
        - 'golden_apple:2'

This would eliminate redundant per-day entries while preserving the existing reward structure. Please consider this request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions