• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

MagicSpells/魔法/教:修订间差异

来自Minecraft插件百科
跳转到导航 跳转到搜索
(创建页面,内容为“__TOC__ 基础魔法。这个魔法将会教会其他玩家你会的这一魔法,不过你并不能教别人你不会的魔法,当然,如果对方不能学会...”)
 
(IceLitty移动页面MagicSpells:魔法/教MagicSpells/魔法/教
(没有差异)

2016年4月1日 (五) 11:53的版本

基础魔法。这个魔法将会教会其他玩家你会的这一魔法,不过你并不能教别人你不会的魔法,当然,如果对方不能学会该魔法(没有magicspells.learn.spell权限),你也不能教他该魔法。如果你不想使用此功能你可以使用magicspells.grant.*权限点控制玩家所有技能的权限,以及使用magicspells.cast.*权限来控制玩家能否释放技能。

用法:/cast teach <玩家名> <魔法名>

配置

选项 解释 默认值
require-known-spell Whether the caster must know the spell in order to teach it. true
str-usage The string that shows if the player casts the spell incorrectly. Usage: /cast teach <target> <spell>
str-no-target The string that shows if the caster types an invalid player name. No such player
str-no-spell The string that shows if the cast does not know the spell they typed. You do not know a spell by that name.
str-cant-teach The string that shows if the casting player cannot teach the spell. You can't teach that spell.
str-cant-learn The string that shows if the target cannot learn the spell. That person cannot learn that spell.
str-already-known The string that show if the target player already knows the spell. That person already knows that spell.
str-cast-target The message sent to the target upon learning the spell. %a has taught you the %s spell.

字符串格式

%a The actor (the person casting the spell)
%t The target (the person learning the new spell)
%s The spell name being taught

举例

teach:
    spell-class: ".command.TeachSpell"
    name: teach
    description: Teach a spell to another player.
    require-known-spell: true
    str-usage: "Usage: /cast teach <target> <spell>"
    str-no-target: No such player.
    str-no-spell: You do not know a spell by that name.
    str-cant-teach: You can't teach that spell.
    str-cant-learn: That person cannot learn that spell.
    str-cast-self: You have taught %t the %s spell.
    str-cast-target: "%a has taught you the %s spell."