- 版权类型
- 原创
- 插件中文名称
- 月卡插件
- 插件英文名称
- MTMonthCard
- 原帖地址
- #
- 支持的核心(服务端)
- Spigot
- Paper
- Folia
- Purpur
- PufferFish
- SpongeVanilla
- Leaves
- 其他核心
- 语言支持
- 中文(简体)
- 前置组件
- PlaceholderAPI
PlayerPoints
Vault
- 适配版本(Java)
- 1.21
- 1.20
- 1.19
- 1.18
- 1.17
- 1.16
- 1.15
- 1.14
- 1.13
- 1.12
配置文件
config.yml 配置文件:
YAML:
# MTMonthCard 配置文件
# 作者: 馒头(QQ33731789)
# 数据库设置
database:
# 数据存储类型: yaml 或 mysql
type: yaml
# MySQL设置 (当type为mysql时使用)
mysql:
host: localhost
port: 3306
database: mtmonthcard
username: root
password: password
# 到期提醒设置
expiry-reminder:
# 是否启用到期提醒
enabled: true
# 提前几天开始提醒
days-before: 3
# 提醒消息
message: '&e&l[提醒] &f你的月卡 &a{card_name} &f将在 &c{days} &f天后到期!'
# 购买成功消息
purchase-success:
# 标题
title: '&a&l购买成功!'
# 副标题
subtitle: '&f你已成功购买 &e{card_name}'
# 淡入时间(tick)
fade-in: 10
# 停留时间(tick)
stay: 40
# 淡出时间(tick)
fade-out: 10
# 商城GUI设置
shop-gui:
# GUI标题
title: '&6&l月卡商城'
# GUI大小 (9的倍数, 9-54)
size: 27
# 背景物品
background:
enabled: true
material: BLACK_STAINED_GLASS_PANE
name: ' '
# 月卡商品配置
cards:
# 月卡ID (唯一标识)
vip_month:
# 显示名称
name: '&6&lVIP月卡'
# 物品材质
material: DIAMOND
# 物品Lore
lore:
- '&7购买VIP月卡享受以下特权:'
- '&a▪ &f每日礼包'
- ''
- '&e价格: &6300点券'
- '&e时长: &a30天'
- ''
- '&7左键购买 | 右键查看礼包'
# GUI中的位置 (0-53)
slot: 11
# 货币类型: vault(金钱) 或 playerpoints(点券)
currency-type: playerpoints
# 价格
price: 300
# 时长(天)
duration: 30
# 购买后执行的命令 (可选)
purchase-commands:
- 'lp user {player} permission set vip.use true'
svip_month:
name: '&c&lSVIP月卡'
material: EMERALD
lore:
- '&7购买SVIP月卡享受以下特权:'
- '&a▪ &f每日礼包'
- ''
- '&e价格: &6680点券'
- '&e时长: &a30天'
- ''
- '&7左键购买 | 右键查看礼包'
slot: 13
currency-type: playerpoints
price: 680
duration: 30
purchase-commands:
- 'lp user {player} permission set svip.use true'
mvip_month:
name: '&d&lMVIP月卡'
material: NETHER_STAR
lore:
- '&7购买MVIP月卡享受以下特权:'
- '&a▪ &f每日礼包'
- ''
- '&e价格: &61280点券'
- '&e时长: &a30天'
- ''
- '&7左键购买 | 右键查看礼包'
slot: 15
currency-type: playerpoints
price: 1280
duration: 30
purchase-commands:
- 'lp user {player} permission set mvip.use true'
# 消息配置
messages:
prefix: '&6[月卡] &f'
no-permission: '&c你没有权限执行此命令!'
reload-success: '&a配置文件已重载!'
player-only: '&c此命令只能由玩家执行!'
insufficient-funds: '&c余额不足! 你还需要 &e{amount} &c元!'
insufficient-points: '&c点券不足! 你还需要 &e{amount} &c点券!'
already-have-card: '&c你已经拥有此月卡了!'
card-not-found: '&c未找到此月卡!'
card-info: '&a月卡: &e{card_name} &a剩余时间: &e{time}'
no-active-card: '&c你当前没有激活的月卡!'
YAML:
# MTMonthCard 礼包配置文件
# 作者: 馒头(QQ33731789)
# 礼包配置
# 每个月卡可以配置自己的礼包
gifts:
# 月卡ID
vip_month:
# 礼包GUI标题
gui-title: '&6&lVIP月卡礼包'
# GUI大小
gui-size: 27
# 礼包列表
rewards:
# 每日礼包
daily:
name: '&a&l每日礼包'
material: CHEST
slot: 11
lore:
- '&7每日可领取一次'
- '&7冷却时间: &e24小时'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x100'
- '&f▪ 经验 x50'
- ''
- '&e点击领取'
# 冷却时间(秒) 86400秒 = 24小时
cooldown: 86400
# 领取后执行的命令
commands:
- 'eco give {player} 100'
- 'exp give {player} 50'
# 每周礼包
weekly:
name: '&b&l每周礼包'
material: ENDER_CHEST
slot: 13
lore:
- '&7每周可领取一次'
- '&7冷却时间: &e7天'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x500'
- '&f▪ 钻石 x5'
- ''
- '&e点击领取'
# 604800秒 = 7天
cooldown: 604800
commands:
- 'eco give {player} 500'
- 'give {player} diamond 5'
# 每月礼包
monthly:
name: '&d&l每月礼包'
material: SHULKER_BOX
slot: 15
lore:
- '&7每月可领取一次'
- '&7冷却时间: &e30天'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x2000'
- '&f▪ 钻石 x20'
- '&f▪ 附魔书 x3'
- ''
- '&e点击领取'
# 2592000秒 = 30天
cooldown: 2592000
commands:
- 'eco give {player} 2000'
- 'give {player} diamond 20'
- 'give {player} enchanted_book 3'
svip_month:
gui-title: '&c&lSVIP月卡礼包'
gui-size: 27
rewards:
daily:
name: '&a&l每日礼包'
material: CHEST
slot: 11
lore:
- '&7每日可领取一次'
- '&7冷却时间: &e24小时'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x200'
- '&f▪ 经验 x100'
- ''
- '&e点击领取'
cooldown: 86400
commands:
- 'eco give {player} 200'
- 'exp give {player} 100'
weekly:
name: '&b&l每周礼包'
material: ENDER_CHEST
slot: 13
lore:
- '&7每周可领取一次'
- '&7冷却时间: &e7天'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x1000'
- '&f▪ 钻石 x10'
- ''
- '&e点击领取'
cooldown: 604800
commands:
- 'eco give {player} 1000'
- 'give {player} diamond 10'
monthly:
name: '&d&l每月礼包'
material: SHULKER_BOX
slot: 15
lore:
- '&7每月可领取一次'
- '&7冷却时间: &e30天'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x4000'
- '&f▪ 钻石 x40'
- '&f▪ 附魔书 x6'
- ''
- '&e点击领取'
cooldown: 2592000
commands:
- 'eco give {player} 4000'
- 'give {player} diamond 40'
- 'give {player} enchanted_book 6'
mvip_month:
gui-title: '&d&lMVIP月卡礼包'
gui-size: 27
rewards:
daily:
name: '&a&l每日礼包'
material: CHEST
slot: 11
lore:
- '&7每日可领取一次'
- '&7冷却时间: &e24小时'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x300'
- '&f▪ 经验 x150'
- ''
- '&e点击领取'
cooldown: 86400
commands:
- 'eco give {player} 300'
- 'exp give {player} 150'
weekly:
name: '&b&l每周礼包'
material: ENDER_CHEST
slot: 13
lore:
- '&7每周可领取一次'
- '&7冷却时间: &e7天'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x1500'
- '&f▪ 钻石 x15'
- ''
- '&e点击领取'
cooldown: 604800
commands:
- 'eco give {player} 1500'
- 'give {player} diamond 15'
monthly:
name: '&d&l每月礼包'
material: SHULKER_BOX
slot: 15
lore:
- '&7每月可领取一次'
- '&7冷却时间: &e30天'
- ''
- '&a奖励内容:'
- '&f▪ 金币 x6000'
- '&f▪ 钻石 x60'
- '&f▪ 附魔书 x10'
- ''
- '&e点击领取'
cooldown: 2592000
commands:
- 'eco give {player} 6000'
- 'give {player} diamond 60'
- 'give {player} enchanted_book 10'
# 消息配置
messages:
gift-claimed: '&a成功领取 &e{card_name} {gift_name}&a!'
gift-cooldown: '&c礼包冷却中! 剩余时间: &e{time}'
no-card: '&c你没有此月卡,无法领取礼包!'
card-expired: '&c你的月卡已过期!'

