Advent Calendar

插件

· 作者 CaelenO42

一个可自定义的圣诞倒数日历,让玩家在节日期间每天都能收到礼物!

0 本站下载 0 关注 更新于 9 个月前

最新 1.5.5 · 1.21.11 · Bukkit / Folia

一键开服(送7天)

Advent Calendar

为你的 Minecraft 服务器增添节日氛围吧!这款可自定义的降临日历插件能让你的玩家收获有趣的礼物,体验独一无二的节日乐趣!

The calendar in action

如果你喜欢这个插件,请考虑支持我!我在业余时间编写插件和模组,您的支持对我意义重大!

Features

  • 完全自定义:当玩家领取礼物时运行的命令
  • 基础命令的可自定义别名
  • 每天可运行任意数量的命令
  • 可自定义时区、领取提示消息、过期领取物品、GUI 名称、填充物等更多选项
  • 使用 SQLite 数据存储
  • 命令现已支持 PlaceholderAPI 占位符!

Commands

/ac - 打开降临日历
/adventcalendar, /advent - /ac 的别名
/ac force <player> - 允许管理员为指定玩家打开日历
/ac admin preview - 打开降临日历 GUI 的预览界面,让管理员可以在不影响正常日历的情况下测试命令和 GUI 自定义设置
/ac admin reload - 允许管理员重载配置文件,无需重启服务器
/ac admin viewclaims <player> - 在聊天栏中显示指定玩家已领取的日历日期
/ac admin removeclaim <player> <day> - 移除指定玩家在指定日期的领取记录
/ac admin removeallclaims <player> - 移除指定玩家的所有领取记录
/ac help - 显示包含各命令描述的帮助窗口

Permissions

adventcalendar.open - 赋予玩家为自己打开降临日历的权限,但在十二月开始前日历仍会显示倒计时。
adventcalendar.admin - 所有管理权限的总括权限
adventcalendar.admin.reload - 允许重载配置文件
adventcalendar.admin.preview - 允许打开预览日历进行测试
adventcalendar.admin.viewclaims - 允许查看指定玩家的领取记录
adventcalendar.admin.removeclaim - 允许移除指定玩家的领取记录
adventcalendar.admin.removeclaimall - 允许移除指定玩家的所有领取记录

Support

如果您遇到任何问题,请不要留下负面评价,而是加入我的开发 Discord 服务器: 我也非常欢迎任何关于改进降临日历的建议!

Config

config.yml
####################################################################################################
# +----------------------------------------------------------------------------------------------+ #
# |                                      __        ___      ___                                  | #
# |                                 /\  |  \ \  / |__  |\ |  |                                   | #
# |                                /~~\ |__/  \/  |___ | \|  |                                   | #
# |                             __             ___       __        __                            | #
# |                           /  `  /\  |    |__  |\ | |  \  /\  |__)                            | #
# |                           \__, /~~\ |___ |___ | \| |__/ /~~\ |  \                            | #
# |                                                                                              | #
# |                                                                                              | #
# |                  https://www.spigotmc.org/resources/advent-calendar.105930/                  | #
# |                          https://modrinth.com/plugin/adventcalendar                          | #
# |                                                                                              | #
# |           If you have any issues or suggestions please join my development discord!          | #
# |                                  https://discord.gg/GMkjWd2Kun                               | #
# |                                                                                              | #
# |  New options are not added to this file automatically. The plugin may break if a config      | #
# |  option cannot be found. The latest config version can be obtained at the link above.        | #
# +----------------------------------------------------------------------------------------------+ #
####################################################################################################

# Used to let the plugin determine if your config is up-to-date, so a
# warning can be printed in the server console. Only edit this if you
# know what you are doing, or have just updated your config to the
# newest version.
config-version: '1.4.0'

# +----------------------------------------------------------------------------------------------+ #
# |                                                                                              | #
# |                                    LOCALIZATION SETTINGS                                     | #
# |                                                                                              | #
# +----------------------------------------------------------------------------------------------+ #

#  Advent Calendar 用于判断当前日期的时区
# 你可以在这里找到时区列表:https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time-zone: 'America/Los_Angeles'

# +----------------------------------------------------------------------------------------------+ #
# |                                                                                              | #
# |                                    CUSTOMIZATION SETTINGS                                    | #
# |                                                                                              | #
# +----------------------------------------------------------------------------------------------+ #

# 日历使用的领取月份(仅在当月可以打开日历)
calendar-month: '12'

# 是否允许玩家领取之前日期的礼物
allow-expired-claims: false

# 为防止小号刷取,每个唯一 IP 地址最多允许的领取次数。
# 设置为 -1 以禁用限制。
max-claims-per-ip: 3

# 礼物的数量是否与日期数字一致,还是每天仅显示 1 个物品
display-numbers-on-gifts: true

# 日历是显示 24 天模式还是 25 天模式
25-day: false

# +----------------------------------------------------------------------------------------------+ #
# |                                                                                              | #
# |                                         TEXT SETTINGS                                        | #
# |                                                                                              | #
# +----------------------------------------------------------------------------------------------+ #

# 支持任何 Minecraft 颜色代码,只需使用 & 符号
# 你也可以使用 %player% 表示玩家用户名,使用 %day% 表示已领取的日期

# Advent Calendar GUI 的标题
title: '&cAdvent &2Calendar'

# 每个礼物上显示的名称。你可以在此指定颜色代码,或在下方的 days-material 中为每个物品单独指定
gift-name: 'Day %day%'

# 已被领取的礼物上显示的名称,你可以在此指定颜色代码,
# 或在下方的 days-material 中为每个物品单独指定
claimed-name: 'Day %day%'

# 关闭按钮上显示的名称。
close-name: '&cClose'

# +----------------------------------------------------------------------------------------------+ #
# |                                                                                              | #
# |                                    GUI MATERIAL SETTINGS                                     | #
# |                                                                                              | #
# +----------------------------------------------------------------------------------------------+ #

# 围绕在 GUI 外围的填充物品的材质
filler-material: 'LIGHT_BLUE_STAINED_GLASS_PANE'

# 关闭按钮使用的材质
close-material: 'BARRIER'

# 用于降临节日历每天的材料。
# 如果材料是 PLAYER_HEAD,那么头像将根据 texture 字段指定的纹理显示。
# day-color 是礼物名称文本出现的颜色,如果你希望不同天数使用不同颜色,可以在此设置。
# custom-model-data 用于配合资源包为物品应用自定义模型;如果设置为 0,则会被忽略。
# claimed-* 系列配置与上述相同,但适用于已被领取或过期的物品版本。
# 注意:对于 texture 字段,必须使用 textures.minecraft.net 的链接,否则日历将会报错。
days-material:
  "1":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "2":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "3":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "4":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "5":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "6":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "7":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "8":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "9":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "10":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "11":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "12":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "13":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "14":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "15":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "16":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "17":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
  "18":
    color: '&a'
    material: 'PLAYER_HEAD'

```yaml
texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
custom-model-data: 0
claimed-color: '&c'
claimed-material: 'COAL_BLOCK'
claimed-texture: ''
claimed-custom-model-data: 0
"19":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
"20":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
"21":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
"22":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
"23":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
"24":
    color: '&a'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/81e42e3725c2b4ae6900580c4e2a6b830f6eca0211f7a3641433fc67fbc43d3f'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
"25":
    color: '&c'
    material: 'PLAYER_HEAD'
    texture: 'http://textures.minecraft.net/texture/5726d9d0632e40bda5bcf65839ba2cc98a87bd619c53adf00310d6fc71f042b5'
    custom-model-data: 0
    claimed-color: '&c'
    claimed-material: 'COAL_BLOCK'
    claimed-texture: ''
    claimed-custom-model-data: 0
####################################################################################################
# +----------------------------------------------------------------------------------------------+ #
# |                                                                                              | #
# |                                   降临节日历命令                                             | #
# |                                                                                              | #
# +----------------------------------------------------------------------------------------------+ #

# 输入命令时,请勿在命令前包含 '/'。
# 使用玩家作为占位符请使用 %player%
# 一个示例命令是 'give %player% minecraft:diamond 10'
# 如果你想给玩家游戏内货币,并且你安装了 Essentials,你可以使用 'eco give %player% <amount>'

# slots-required 用于给予命令,以确保玩家在领取物品前有足够背包空间
# 如果你不给玩家物品,将此设置为 0;如果你给玩家 3 组物品,将此设置为 3
rewards:
  "1":
    slots-required: 1
    commands:
      - 'say test'
  "2":
    slots-required: 1
    commands:
      - 'say test'
  "3":
    slots-required: 1
    commands:
      - 'say test'
  "4":
    slots-required: 1
    commands:
      - 'say test'
  "5":
    slots-required: 1
    commands:
      - 'say test'
  "6":
    slots-required: 1
    commands:
      - 'say test'
  "7":
    slots-required: 1
    commands:
      - 'say test'
  "8":
    slots-required: 1
    commands:
      - 'say test'
  "9":
    slots-required: 1
    commands:
      - 'say test'
  "10":
    slots-required: 1
    commands:
      - 'say test'
  "11":
    slots-required: 1
    commands:
      - 'say test'
  "12":
    slots-required: 1
    commands:
      - 'say test'
  "13":
    slots-required: 1
    commands:
      - 'say test'
  "14":
    slots-required: 1
    commands:
      - 'say test'
  "15":
    slots-required: 1
    commands:
      - 'say test'
  "16":
    slots-required: 1
    commands:
      - 'say test'
  "17":
    slots-required: 1
    commands:
      - 'say test'
  "18":
    slots-required: 1
    commands:
      - 'say test'
  "19":
    slots-required: 1
    commands:
      - 'say test'
  "20":
    slots-required: 1
    commands:
      - 'say test'
  "21":
    slots-required: 1
    commands:
      - 'say test'
  "22":
    slots-required: 1
    commands:
      - 'say test'
  "23":
    slots-required: 1
    commands:
      - 'say test'
  "24":
    slots-required: 1
    commands:
      - 'say test'
  "25":
    slots-required: 1
    commands:
      - 'say test'
strings.yml
####################################################################################################
# +----------------------------------------------------------------------------------------------+ #
# |                                                                                              | #
# |                                  __        ___      ___                                    | #
# |                             /\  |  \ \  / |__  |\ |  |                                    | #
# |                            /~~\ |__/  \/  |___ | \|  |                                    | #
# |                         __             ___       __        __                              | #
# |                       /  `  /\  |    |__  |\ | |  \  /\  |__)                              | #
# |                       \__, /~~\ |___ |___ | \| |__/ /~~\ |  \                             | #
# |                                                                                              | #
# |                                                                                              | #
# |                  https://www.spigotmc.org/resources/advent-calendar.105930/                  | #
# |                          https://modrinth.com/plugin/adventcalendar                          | #
# |                                                                                              | #
# |           如果有任何问题或建议,请加入我的开发 Discord!                                         | #
# |                                  https://discord.gg/GMkjWd2Kun                               | #
# |                                                                                              | #
# |  新选项不会自动添加到此文件中。如果找不到配置选项,插件可能会出错。                           | #
# |  最新配置文件版本可在上方链接获取。                                                            | #
# +----------------------------------------------------------------------------------------------+ #
####################################################################################################

# +----------------------------------------------------------------------------------------------+ #
# |                                                                                              | #
# |                                           字符串                                             | #
# |                                                                                              | #
# +----------------------------------------------------------------------------------------------+ #

# 支持任何 Minecraft 颜色代码,只需使用 & 符号
# 此版本也支持渐变,语法请参阅:
# https://github.com/Iridium-Development/IridiumColorAPI/blob/master/README.md
# 你也可以使用 %player% 表示玩家用户名,使用 %day% 表示已领取的日期

# 此值将插入到你使用 %prefix% 的任何位置
prefix: "&a降临节日历 >>"

# 玩家领取礼物后发送的消息
claim-message: "&a礼物领取成功!节日快乐,%player%!"

# 当礼物过期时显示的消息
error-expired-message: "&c该礼物已无法领取。"

# 当达到 IP 限制时显示的消息
error-ip-message: "&c从该 IP 地址领取的礼物数量已达上限。"

礼物已被领取时显示的消息

error-claimed-message: "&c该礼物已被领取。"

当用户尝试领取礼物但背包已满时显示的消息

error-inventory-message: "&c你的背包空间不足,无法接收此礼物!"

当日历尚未解锁时显示的消息

注意:%s 会自动填充时间数据,除非你清楚自己在做什么,否则不要修改它们。

error-calendar-message: "&c Advent Calendar 将在 %s 天 %s 小时 %s 分钟 %s 秒后开启。"

当礼物尚未解锁时显示的消息

注意:%s 会自动填充时间数据,除非你清楚自己在做什么,否则不要修改它们。

error-gift-message: "&c 你可以在 %s 天 %s 小时 %s 分钟 %s 秒后领取此物品。"

当用户执行 /reload 命令时显示的消息

reload-message: "&a配置已成功重新加载!"

当 %adventcalendar_claimed_today% 占位符为 true 时显示的消息

claimed-today-true: "&a今天尚未领取 Advent Calendar 礼物!"

当 %adventcalendar_claimed_today% 占位符为 false 时显示的消息

claimed-today-false: "&c今天已领取 Advent Calendar 礼物!"


</details>

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源