- ◆ 支持核心
- Arclight
- ◆ 插件前置
- None
- ◆ 游戏版本
- 1.21.1 其他没试过
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
每日自动刷新的随机商店插件!为 Cobblemon 宝可梦服务器量身定制,支持权重随机上架、权限折扣、每日限购、SQLite 持久化,让你的服务器经济系统更加丰富多彩!
这个是我练习做的小插件,自己服务器也在用哦!
/dailyshop — 打开商店
/dailyshop give <玩家> <物品ID> [数量] — 给予物品
/dailyshop reload — 重载配置
/dailyshop refresh — 强制刷新商店
/dailyshop status — 查看状态
别名: /dshop, /ds
dailyshop.use — 打开商店(默认所有玩家)
dailyshop.admin — 管理命令(OP)
dailyshop.give — 给予物品(OP)
dailyshop.discount.vip1 — 9折
dailyshop.discount.vip2 — 8折
dailyshop.discount.vip3 — 7折
dailyshop.discount.admin — 免费
config.yml — 刷新时间、经济系统、折扣配置
items.yml — 物品池(权重、价格、限购、指令)
gui.yml — GUI标题、行数、边框材质
YAML:
# DailyRandomShop 配置文件 config.yml
# 每日刷新时间(24小时制)
refresh-time: "03:00"
# 每日上架物品数量
items-per-day: 9
# 可用世界列表(留空则全部世界可用)
enabled-worlds:
- world
# 经济系统设置
economy:
# 首选经济插件: vault 或 playerpoints
# 设置后会自动检测对应的插件是否安装
primary: vault
# 权限折扣配置
# permission: 权限节点
# multiplier: 价格倍率 (0.0=免费 ~ 1.0=原价)
# priority: 优先级(数字越大越优先)
# 当玩家拥有多个折扣权限时,取最高 priority 的生效
discounts:
dailyshop.discount.vip1:
multiplier: 0.9
priority: 1
dailyshop.discount.vip2:
multiplier: 0.8
priority: 2
dailyshop.discount.vip3:
multiplier: 0.7
priority: 3
dailyshop.discount.admin:
multiplier: 0.0
priority: 100
YAML:
# ========================================
# RanDailyShop GUI配置
# ========================================
# GUI标题
title: "每日随机商店"
# 商品展示行数 (1-3, 每行9格, 最多展示27个商品)
display-rows: 1
# 边框材质
border-material: "BLUE_STAINED_GLASS_PANE"
# 空位材质
empty-slot-material: "GRAY_STAINED_GLASS_PANE"
YAML:
# ========================================
# RanDailyShop 物品池配置文件
# ========================================
#
# material: 支持原版材质(DIAMOND)和模组命名空间(cobblemon:master_ball)
# type: eco=金币, points=点券
# weight: 出现概率权重(越大越容易上架)
# limit: 每日限购(-1=无限)
# commands: 购买后执行的控制台指令, {player}替换玩家名
# give-material: true=同时给材质物品+执行指令
#
# ========================================
items:
diamond:
material: minecraft:diamond
amount: 1
name: "&b钻石"
type: eco
weight: 20
price: 6000.0
limit: 10
nether_star:
material: minecraft:nether_star
amount: 1
name: "&f下届之星"
type: eco
weight: 1
price: 500000.0
limit: -1
netherite_scrap:
material: minecraft:netherite_scrap
amount: 1
name: "&8下届合金"
type: eco
weight: 20
price: 10000.0
limit: 3
# ==================== 努力值卡(指令占位) ====================
ev_card_hp:
material: PAPER
name: "&b努力值卡-生命"
lore:
- "&7提升宝可梦HP努力值"
type: eco
weight: 15
price: 300000.0
limit: 1
commands:
- "cc card give {player} single_ev_hp 1"
ev_card_atk:
material: PAPER
name: "&b努力值卡-攻击"
lore:
- "&7提升宝可梦攻击努力值"
type: eco
weight: 15
price: 300000.0
limit: 1
commands:
- "cc card give {player} single_ev_atk 1"
ev_card_def:
material: PAPER
name: "&b努力值卡-防御"
lore:
- "&7提升宝可梦防御努力值"
type: eco
weight: 15
price: 300000.0
limit: 1
commands:
- "cc card give {player} single_ev_def 1"
ev_card_spatk:
material: PAPER
name: "&b努力值卡-特攻"
lore:
- "&7提升宝可梦特攻努力值"
type: eco
weight: 15
price: 300000.0
limit: 1
commands:
- "cc card give {player} single_ev_spa 1"
ev_card_spdef:
material: PAPER
name: "&b努力值卡-特防"
lore:
- "&7提升宝可梦特防努力值"
type: eco
weight: 15
price: 300000.0
limit: 1
commands:
- "cc card give {player} single_ev_spf 1"
ev_card_spd:
material: PAPER
name: "&b努力值卡-速度"
lore:
- "&7提升宝可梦速度努力值"
type: eco
weight: 15
price: 300000.0
limit: 1
commands:
- "cc card give {player} single_ev_spe 1"
ev_clear_card:
material: PAPER
name: "&7努力值清空卡"
lore:
- "&7清空宝可梦所有努力值"
type: eco
weight: 20
price: 100000.0
limit: 1
commands:
- "cc card give {player} clear_ev 1"
# ==================== 特殊卡片(指令占位) ====================
gender_change_card:
material: PAPER
name: "&d变性卡"
lore:
- "&7改变宝可梦的性别"
type: eco
weight: 2
price: 800000.0
limit: 1
commands:
- "cc card give {player} nature 1"
shiny_card:
material: PAPER
name: "&6闪光卡"
lore:
- "&7让宝可梦变为闪光形态!"
- "&c极其稀有!"
type: eco
weight: 1
price: 1000000.0
limit: 1
commands:
- "cc card give {player} shiny 1"
# ==================== 薄荷叶(指令占位) ====================
mint_red:
material: PAPER
name: "&c红色薄荷叶"
lore:
- "&7改变宝可梦的性格(攻击系)"
type: eco
weight: 30
price: 10000.0
limit: 1
commands:
- "COMMAND_TODO"
mint_cyan:
material: PAPER
name: "&b青色薄荷叶"
lore:
- "&7改变宝可梦的性格(特攻系)"
type: eco
weight: 30
price: 10000.0
limit: 1
commands:
- "COMMAND_TODO"
mint_blue:
material: PAPER
name: "&9蓝色薄荷叶"
lore:
- "&7改变宝可梦的性格(防御系)"
type: eco
weight: 30
price: 10000.0
limit: 1
commands:
- "COMMAND_TODO"
mint_pink:
material: PAPER
name: "&d粉色薄荷叶"
lore:
- "&7改变宝可梦的性格(速度系)"
type: eco
weight: 30
price: 10000.0
limit: 1
commands:
- "COMMAND_TODO"
mint_green:
material: PAPER
name: "&a绿色薄荷叶"
lore:
- "&7改变宝可梦的性格(特防系)"
type: eco
weight: 30
price: 10000.0
limit: 1
commands:
- "COMMAND_TODO"
# ==================== 每日商店刷新卡(新增) ====================
shop_refresh_card:
material: cobblemon:rare_candy
name: "&e&l每日商店刷新卡"
lore:
- "&7使用后立刻刷新每日商店!"
- "&c一次性消耗品"
type: eco
weight: 5
price: 100000.0
limit: 1
commands:
- "dailyshop refresh"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━