- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
MagicSpells/商店
商店插件允许你来用告示牌售卖技能和卷轴。
下载
访问原页面的“Download”处进行最新版的下载。
安装和配置
要使用本附属插件,必须先安装以下插件:
- MagicSpells本体(必须)
- Vault插件(如果需要)
- 任何一个和Vault相配合的经济插件(如果需要)
安装只需放入plugins文件夹中,插件目录会生成一个config.yml
配置文件,详情如下:
选项 | 解释 | 默认值 |
---|---|---|
require-known-spell | Whether the person placing the sign must know the spell they are creating a shop for. | true |
require-teach-perm | Whether the person placing the sign must have the teach permission for the spell they are creating a shop for. | true |
currencies | A list of currency names and types that can be used. The first one in the list is the default currency, in case one isn't listed on the sign. Valid type values are “vault” for normal currency, “levels” for experience levels, “experience” for experience itself, an item type id (ex: “266”), or an item type and data value combo (ex: “351:3”). | |
first-line | The text placed on the first line of a sign that indicates the sign is a shop. | [SPELL SHOP] |
str-already-known | The message that appears when a player tries to buy a spell they already know. | You already know that spell. |
str-cant-afford | The message that appears when a player tries to buy a spell they cannot afford. | You cannot afford that spell. |
str-purchased | The message that appears when a player successfully purchases a spell. | You have purchased the %s spell. |
first-line-scroll | The text placed on the first line of a sign that indicates the sign is a scroll shop. | [SCROLL SHOP] |
scroll-spell-name | The internal name of the scroll spell. | scroll |
scroll-item-type | The item type of scrolls (paper by default). | 339 |
str-cant-afford-scroll | The message that appears when a player tries to buy a scroll they cannot afford. | You cannot afford that scroll. |
str-purchased-scroll | The message that appears when a player successfully purchases a scroll. | You have purchased a scroll for the %s spell (with %u uses). |
str-scroll-fail | The message that appears when the plugin could not create a scroll (caused by running out of scroll space). | You cannot purchase a scroll at this time. |
字符串中变量意义:
- %s: 技能名
- %c: 购买费用
- %u: 使用次数(仅对于卷轴商店)
权限
你必须拥有magicspells.createsignshop
权限点才能创建一个技能商店,这个权限点是管理员默认拥有的。
用法
创建技能商店,只需要这样写告示牌:
- 第一行:[SPELL SHOP](即配置文件中的
first-line
的值) - 第二行:魔法名称
- 第三行:花费(必须是此格式:- <数额> [货币单位] - 举例: 10 gold)
- 第四行:此行随便什么文本都行
创建卷轴商店,只需要这样写告示牌:
- 第一行:[SCROLL SHOP](即配置文件中的
first-line-scroll
的值) - 第二行:魔法名称
- 第三行:使用次数(例如:“5 uses”)(只能是数字+任何文本)
- 第四行:花费(必须是此格式:- <数额> [货币单位] - 举例: 10 gold)
默认设置
require-known-spell: true require-teach-perm: true currencies: money: "vault" levels: "levels" xp: "experience" gold: "266" cocoa: "351:3" first-line: [SPELL SHOP] str-already-known: You already know that spell. str-cant-afford: You cannot afford that spell. str-cant-learn: You are not able to buy that spell. str-purchased: You have purchased the %s spell. first-line-scroll: [SCROLL SHOP] scroll-spell-name: scroll scroll-item-type: 339 str-cant-afford-scroll: You cannot afford that scroll. str-purchased-scroll: You have purchased a scroll for the %s spell (with %u uses). str-scroll-fail: You cannot purchase a scroll at this time.
论坛
如果对于此插件有任何疑问,请前往作者论坛查询或发帖。(英文)