messages.yml
plugins/StarCrate/messages.yml 是所有提示文字与编辑器文字。改完 /sc reload 生效。
写法规则
- 支持 MiniMessage(
<gold>、<gradient:#FFD86F:#FC6262>…</gradient>)、&颜色代码与&#RRGGBB,也可以混着写。 - 留空
''= 不发送这条提示。 - 大部分聊天提示前面会自动加上
prefix;十连结果的每一行(result.ten-line)不加。 - 文件里没有的键会使用插件内置的默认文字,升级后不会出现「Missing message」。
{…}是变量,各条能用的变量写在下表。
通用
| 键 | 默认 | 说明 |
|---|---|---|
prefix | ✦ 星月造物 » | 聊天提示的前缀 |
cancel-word | 取消 | 编辑器聊天输入时放弃的文字(另外 cancel 也一直有效) |
free | 免费 | 花费显示:免费奖池 |
none | 无 | 例如十连保底没设定时 |
all-crates | 全部奖池 | /sc top、抽奖记录看全部奖池时 |
grand-mark | ✦终极大奖 | 结果、记录里终极大奖的标记({grand}) |
delivery-inventory | 直接放进背包 | /sc version 显示的发放方式 |
default-key-name | {crate} 钥匙 | 奖池没设定钥匙名称时的名称 |
default-key-lore | 3 行 | 默认钥匙的说明,{crate} = 奖池名称 |
currency.none / money / points / key | '' / 金币 / 点券 / × {key} | 花费显示在数字后面的单位,{key} = 钥匙名称({cost_single} 会显示成 100 金币、1 × 星辉宝箱 钥匙) |
pity-bar.full / empty | ▮(金色 / 深灰) | 保底进度条({pity_bar},共 20 格)已满与未满的格子 |
抽奖
| 键 | 变量 | 什么时候出现 |
|---|---|---|
animating | 动画还在播放时又要抽奖 | |
not-licensed | 授权还没通过 | |
no-crate-permission | {crate} | 没有奖池的开启权限 |
ten-disabled | 奖池不允许十连 | |
crate-empty | {crate} | 奖池没有任何奖品 |
crate-missing | {crate} | 方块或宝箱物品对应的奖池已不存在 |
nothing-to-draw | 这位玩家已经没有能抽的奖品(都达到上限),不会扣费 | |
capacity | {left} | 这位玩家能抽到的奖品不够这次的抽数(例如只剩 3 个却要十连),请他改用单抽 |
draw-failed | 读取玩家数据失败(例如数据库暂时连不上) | |
daily-limit | {limit} {left} | 达到每日上限 |
no-economy / no-points | 用金币 / 点券抽奖但服务器没有 Vault 经济 / PlayerPoints | |
not-enough-money / not-enough-points | {cost} | 金币 / 点券不足 |
not-enough-keys | {need} {key} {have} | 钥匙不足 |
not-enough-crates | {need} {crate} {have} | 宝箱物品不足 |
paid-money / paid-points | {cost} | 已扣除金币 / 点券 |
paid-keys | {count} | 已使用钥匙 |
select-full | {count} | 自选奖池已经选满 |
select-need | {count} | 自选奖池还没选够就按确认 |
select-limit | 自选奖池选了已达上限的奖品 | |
select-no-permission | 自选奖池选了没有权限的奖品 | |
animations-on / animations-off | /sc animation 开启 / 关闭 |
结果与发放
| 键 | 变量 | 说明 |
|---|---|---|
result.single | {rarity} {prize} {grand} | 单抽结果(鼠标移到奖品名称上显示物品) |
result.ten-header | {count} {crate} | 十连结果的第一行 |
result.ten-line | {rarity} {prize} {grand} | 十连每个奖品一行(不加前缀) |
result.mailed | 奖励已寄到星月邮箱,整行可点击打开邮箱 | |
result.mailed-hover | 上面那行的鼠标提示 | |
mail.content | {crate} {count} {player} {prizes} | 奖励邮件的正文;含 {prizes} 的那一行对每个奖品各写一行(稀有度 + 奖品名称) |
overflow-stash | {count} | 背包满了,奖励已暂存(整行可点击执行 /sc stash) |
overflow-drop | {count} | 背包满了,奖励掉在脚下 |
pending-delivered | {crate} | 上线补发上次未完成发放的奖励 |
stash-empty | 没有暂存的奖励 | |
stash-no-space | 背包空间不足,一份都领不了 | |
stash-claimed | {count} {left} | 领了几份、还剩几份 |
奖励邮件的寄件人、标题、过 期天数在 config.yml 的 delivery,见 奖励发放。
公告与全息
| 键 | 变量 | 说明 |
|---|---|---|
broadcast.normal | {player} {crate} {rarity} {prize} | 一般奖品的全服公告 |
broadcast.grand | 同上 | 终极大奖的全服公告 |
broadcast.grand-sound | 终极大奖公告时对全服玩家播放的音效 | |
broadcast.cross-server-prefix | {server} | 其他子服的公告前面加的文字,{server} = 子服名称 |
hologram.lines | {crate} {prizes} | 抽奖方块全息标题下面的说明行(可以多行) |
方块与管理
| 键 | 变量 | 说明 |
|---|---|---|
block-protected | {crate} | 有人想破坏抽奖方块 |
look-at-block | /sc setblock / removeblock 时没有看着方块 | |
block-set / block-removed | {crate} | 设定 / 解除抽奖方块 |
not-a-crate-block | 看着的方块不是抽奖方块 | |
cleaned | {count} | /sc cleanup 清除了几个实体 |
no-permission / players-only | 没有权限 / 只有玩家可以使用 | |
player-offline | {player} | 找不到玩家 |
crate-not-found / crate-exists | {crate} | 没有这个奖池 / 奖池已存在 |
bad-id | 奖池 ID 格式不对 | |
created / deleted | {crate} | 建立 / 删除奖池 |
renamed | {old} {new} | 改名成功 |
rename-failed | 改名失败 | |
save-failed | {error} | 保存失败 |
list / list-empty | {crates} | /sc list |
gave-crate / gave-key | {player} {amount} {crate} | /sc give / /sc key |
not-a-number | {value} | 数量或次数不是数字 |
pity-set | {player} {crate} {pity} | /sc pity 设置 |
pity-info | {player} {crate} {pity} {max} {total} | /sc pity 查看 |
stats-header | {crate} {total} {players} | /sc stats 第一行 |
stats-line | {prize} {count} {real} {chance} | /sc stats 每个奖品 |
top-header | {crate} | /sc top 第一行 |
top-line | {rank} {player} {count} | /sc top 每一名 |
imported | {crates} {prizes} {blocks} {pity} | 导入完成 |
import-warning | {warning} | 导入时的每一条警告 |
import-failed | {error} | 导入失败 |
reloaded | {crates} | /sc reload 完成 |
version | {version} {edition} {database} {delivery} | /sc version |
usage.* | 指令参数不够时显示的用法 | |
help.header、help.* | /sc help 的每一行 |
名称
| 键 | 说明 |
|---|---|
anim.roulette … anim.none | 动画在编辑器里显示的名称(星轨轮盘、星辰翻牌、星落、星月老虎机、星环回廊、星环(3D)、流星(3D)、无动画) |
particle.none … particle.magic | 方块粒子在编辑器里显示的名称 |
云界面(cloudui)
安装云界面 CloudUI 时,奖池预览 画面上的文字。默认文件里没有这一段,需要修改时自己加上 cloudui: 与想改的键:
crumb、drawn、hint、pity、single、ten、history、close、chance({chance})、grand、limit({won} {limit})、free、none、rarity。
每个键的默认值与位置见 云界面预览 · 文字。
编辑器(editor)
编辑器的所有文字都在 editor 底下,分成几类:
| 键 | 说明 |
|---|---|
title-prizes / title-prize / title-settings | 三个页面的标题,可用 {crate}(title-prize 另有 {prize} = 奖品编号) |
on、off、yes、no、yes-grand、no-give、none、default、unlimited、item-name | 按钮上显示的状态文字 |
broadcast-default / broadcast-on / broadcast-off | 奖品公告的三种状态:跟随稀有度 / 公告 / 不公告 |
type-normal / type-instant / type-select | 奖池类型名称 |
cost-none / cost-money / cost-points / cost-key | 花费类型名称 |
prize-lore | 奖品页每个奖品下面加的「抽奖属性」说明,见下方 |
prize-item-lore | 奖品详细设定页中间那个物品下面加的操作说明 |
added、deleted、copied、confirm-delete、item-replaced、rarity-set、key-set、key-hint、crate-item-set、crate-item-hint、invalid、save-failed | 操作后的聊天提示(added、copied 可用 {id},rarity-set 可用 {rarity}) |
input-* | 需要在聊天栏输入时的提示,{cancel} = 取消用的文字 |
button.<按钮>.name / button.<按钮>.lore | 每个按钮的名称与说明 |
prize-lore 的变量
| 变量 | 内容 |
|---|---|
{id} / {index} | 奖品编号 / 第几个 |
{weight} / {chance} | 权重 / 换算的设定概率 |
{rarity} | 稀有度名称 |
{grand} | 是否终极大奖(yes-grand / no) |
{broadcast} | 公告设定(broadcast-*) |
{give} | 是否发放物品(yes / no-give) |
{limit} | 每人上限(unlimited = 不限) |
{commands} | 指令数量 |
{commands_list} | 含有它的那一行会对每条指令重复一次(显示 /指令);没有指令时整行拿掉 |
{permission_line} | 含有它的那一行只有设定了奖品权限时才出现,换成权限节点 |
{name} / {permission} / {amount} | 显示名称 / 权限 / 物品数量 |
按钮列表
| 页面 | 按钮键 |
|---|---|
| 奖品页 | prev、next({page} {pages})、settings、help、chance-on、chance-off、info({prizes} {weight} {grand} {pity})、test、sort、give-crate |
| 奖品详细设定 | p-weight、p-rarity、p-grand-on、p-grand-off、p-broadcast、p-give-on、p-give-off、p-commands、p-name、p-limit、p-permission、p-amount、p-copy、p-delete、p-delete-confirm、p-left、p-right(可用上面 prize-lore 的变量) |
| 奖池设置 | s-name、s-type、s-select、s-anim、s-anim-ten、s-ten、s-chance、s-cost-type、s-cost-single、s-cost-ten、s-key-item、s-key-name、s-consume、s-crate-item、s-pity、s-soft-start、s-soft-step、s-ten-guarantee、s-daily、s-permission、s-broadcast、s-hologram、s-particle |
| 共用 | back、close |
奖池设置页按钮可用的变量:{name} {id} {type} {select} {anim} {anim_ten} {ten} {chance} {cost_type} {cost_single} {cost_ten} {key} {key_item} {consume} {crate_item} {pity} {soft_start} {soft_step} {ten_guarantee} {daily} {permission} {broadcast} {hologram} {particle}。