? Birthday70Cents
? 由 70CentsApple 开发的 Minecraft 1.21.4 插件,用于生日礼物功能。
Birthday70Cents 是一款简单有趣的插件,允许玩家设置自己的生日、领取生日礼物,并让管理员高效地管理这些礼物。
- ? 支持 Folia 和 Paper 1.21.4
- ? 完全可配置的生日礼物系统
- ? 基于权限的玩家控制
- ? 能够定义拆礼物的动作链,例如执行命令或给予物品
?️ 命令与权限
| 命令 |
描述(* = 默认为管理员) |
权限 |
/birthday70cents |
基础命令(别名:/birthday, /bday) |
birthday.basic |
/birthday help |
显示命令帮助 |
birthday.basic.help |
/birthday set <MM-dd> |
设置你的生日(格式:MM-dd) |
birthday.basic.set |
/birthday withdraw |
领取你的生日礼物 |
birthday.basic.withdraw |
/birthday edit |
* 编辑生日礼物物品及动作链 |
birthday.admin.edit |
/birthday get |
* 获取示例生日礼物 |
birthday.admin.get |
/birthday query <player> |
* 查询玩家的生日信息 |
birthday.admin.query |
/birthday modify <player> <reset?> |
* 修改玩家生日信息 |
birthday.admin.modify |
/birthday reload |
* 重载插件配置 |
birthday.admin.reload |
? 你可以根据需要使用 LuckPerms(等)微调子权限。
? PAPI 占位符
你可以使用 PlaceholderAPI 来获取玩家的生日信息。以下是可用的占位符:
| 占位符 |
描述 |
示例 |
%birthday70cents_is_birthday_today% |
1 或 0,表示今天是否为该玩家的生日 |
1 |
%birthday70cents_has_withdrawn_this_year% |
1 或 0,表示该玩家今年是否已领取礼物 |
0 |
%birthday70cents_has_set_birthday% |
1 或 0,表示该玩家是否已设置生日 |
1 |
%birthday70cents_withdrawn_years% |
玩家领取礼物的年份,以逗号分隔 |
2022, 2024, 2025 |
%birthday70cents_today_prefix% |
如果今天是该玩家的生日,则返回配置中 papi-birthday-prefix 的值;否则为空 |
|
? 配置
插件的配置文件位于 config.yml。
玩家的生日数据存储在 birthday.yml 中,该文件会自动创建在插件文件夹内。
你可以编辑此文件来管理玩家生日,但为了安全起见,建议使用提供的命令进行操作。
示例配置:
# 语言,取值:[en_us, zh_cn]
language: en_us
# 如果玩家的生日是 02-29:
# 0 - 只能在 02-29 当天领取礼物。
# 1 - 如果今年不是闰年,将用户的生日视为 03-01。
# -1 - 如果今年不是闰年,将用户的生日视为 02-28。
adjust-leap-year: 0
# 如果今天是该玩家的生日,%birthday_today_prefix% 的值将为以下内容,
# 否则为空字符串。(需要 PAPI)
papi-birthday-prefix: '?'
? Birthday70Cents
? A Minecraft 1.21.4 plugin for birthday gifts by 70CentsApple.
Birthday70Cents is a simple and fun plugin that allows players to set their birthday, receive birthday presents, and for administrators to manage those presents efficiently.
- ? Supports Folia and Paper 1.21.4
- ? Fully configurable birthday present system
- ? Permissions-based player control
- ? Able to define action chains for present unwrapping, such as executing commands or giving items
?️ Commands & Permissions
| Command |
Description (* = admin by default) |
Permission |
/birthday70cents |
Base command (aliases: /birthday, /bday) |
birthday.basic |
/birthday help |
Show command help |
birthday.basic.help |
/birthday set <MM-dd> |
Set your birthday (format: MM-dd) |
birthday.basic.set |
/birthday withdraw |
Claim your birthday present |
birthday.basic.withdraw |
/birthday edit |
* Edit birthday gift items and action chains |
birthday.admin.edit |
/birthday get |
* Get sample birthday present |
birthday.admin.get |
/birthday query <player> |
* Query player’s birthday info |
birthday.admin.query |
/birthday modify <player> <reset?> |
* Modify player birthday info |
birthday.admin.modify |
/birthday reload |
* Reload plugin configuration |
birthday.admin.reload |
? You can fine-tune child permissions using LuckPerms (for example) as needed.
? PAPI Placeholders
You can use PlaceholderAPI to access player birthday information. Here are the available placeholders:
| Placeholder |
Description |
Example |
%birthday70cents_is_birthday_today% |
1 or 0, indicating if today is the player's birthday |
1 |
%birthday70cents_has_withdrawn_this_year% |
1 or 0, indicating if the player has claimed a gift this year |
0 |
%birthday70cents_has_set_birthday% |
1 or 0, indicating if the player has set their birthday |
1 |
%birthday70cents_withdrawn_years% |
Years the player has withdrawn presents, separated by commas |
2022, 2024, 2025 |
%birthday70cents_today_prefix% |
If today is the player's birthday, this will be the value of papi-birthday-prefix in the config; otherwise, it will be empty |
|
? Configuration
The plugin's configuration file is located at config.yml.
The players' birthdays are stored in birthday.yml, which is automatically created in the plugin's folder.
You can edit this file to manage player birthdays, but it is recommended to use the provided commands for safety.
Example configuration:
# Language, takes value: [en_us, zh_cn]
language: en_us
# If a player's birthday is 02-29:
# 0 - They could only withdraw their present at exactly 02-29.
# 1 - If this year is not a leap year, consider the user's birthday as 03-01.
# -1 - If this year is not a leap year, consider the user's birthday as 02-28.
adjust-leap-year: 0
# The value of %birthday_today_prefix% will be this if today is the player's birthday,
# empty string otherwise. (Requires PAPI)
papi-birthday-prefix: '?'
评论 0
登录后参与评分
还没有评论,来抢沙发吧