简介
- 打开宝箱后获得随机奖励。
指令
- /randombox get <宝箱> [数量] - 获取宝箱
- /randombox give <玩家> <宝箱> [数量] - 给予宝箱
- /randombox reload - 重载配置文件
- 缩写:/rb
权限
- randombox.admin - 可使用以上指令,管理员默认拥有
配置
- 插件第一次加载时会自动生成预设的配置文件,可参照其中格式修改
YAML:
'&e&l一阶金钱宝箱':
# 物品类型
Type: CHEST_MINECART
# 开启时燃放烟花
Firework:
# 是否开启
Enable: true
# 类型,BALL、BALL_LARGE、STAR、BURST、CREEPER
Type: BALL_LARGE
# 颜色
Colors: ['#FFFF00', '#FF8000']
# 淡出颜色
Fade_Colors: ['#808080', '#000000']
# 闪烁
Flicker: true
# 踪迹
Trail: false
# 飞行时间
Power: 1
# 奖励数量
Reward_Count: 3
# 奖励
Reward:
# 名称
'1':
# 权重
Weight: 10
# 介绍
Lore: '&e金钱 × 1500'
# 指令,%player%代表开启玩家
Command: 'eco give %player% 1500'
'2':
Weight: 9
Lore: '&e金钱 × 3000'
Command: 'eco give %player% 3000'
'3':
Weight: 8
Lore: '&e金钱 × 4500'
Command: 'eco give %player% 4500'
'4':
Weight: 7
Lore: '&e金钱 × 6000'
Command: 'eco give %player% 6000'
'5':
Weight: 6
Lore: '&e金钱 × 7500'
Command: 'eco give %player% 7500'
'6':
Lore: '&e金钱 × 9000'
Weight: 5
Command: 'eco give %player% 9000'
'7':
Weight: 4
Lore: '&e金钱 × 10500'
Command: 'eco give %player% 10500'
'8':
Weight: 3
Lore: '&e金钱 × 12000'
Command: 'eco give %player% 12000'
'9':
Weight: 2
Lore: '&e金钱 × 13500'
Command: 'eco give %player% 13500'
'10':
Weight: 1
Lore: '&e金钱 × 15000'
Command: 'eco give %player% 15000'