这是本文档旧的修订版!
权限 Permissions
magic中的大多数权限都允许访问命令,并且(除了少数例外)只应授予mod或admin。
快速开始
最常见的情况是,mods和admins应该具有以下访问所有magic命令和项目的权限:
Magic.commands.*
Magic.create.*
magic.*不是一个好主意,有许多权限用于绕过或其他功能,您可能不想一直打开。如果你需要绕道而行的话,最好用OP!
玩家不需要任何特殊权限。更多信息见下文。
玩家权限 Player Permissions
默认情况下,所有玩家都可以使用魔杖和所有法术。可以通过取消以下权限节点来限制这一点:
- -Magic.wand.use : 玩家不能用法杖
- -Magic.use.<wandname> : 玩家可能不可以使用特定法杖或者魔法物品
- -Magic.wand.craft : 玩家不能够制造法杖
- -Magic.cast.* : 玩家不能施展任何魔咒
- Magic.cast.<spellname> : 玩家可以施展一个特定的魔咒
默认情况下,玩家不能访问任何命令。magic命令权限遵循格式“magic.commands.<command><subcommand>”。例如:
- Magic.commands.mskills : 玩家可以使用 /mskills skill 选择器
- Magic.commands.spells : 玩家可以使用 /spells
修改和管理权限 Mod and Admin Permissions
您也可以使用/wand和mgive命令限制哪些物品和法杖可用于mods。默认情况下,如果他们有权限,他们可以使用这些命令来生成任何物品。
- Magic.commands.mgive : 玩家生成物品和法杖
- Magic.commands.wand : 玩家只可生成法杖
- -Magic.create.* : 玩家不能生成任何物品或者法杖
- Magic.create.wand : 玩家能生成名为“wand”的法杖
- Magic.create.battle : 玩家能成圣名为“battle”的法杖
- Magic.create.stone : 玩家能生成石头方块
- Magic.create.hylian_shield : 玩家可以生成物品Hylian_shield
绕过权限 Bypass Permissions
默认情况下,操作系统有几个权限可以让它们绕过限制:
Magic.bypass : The player may bypass most restriction checks. Magic.bypass_build : The player may cast spells that are otherwise build-restricted Magic.bypass_break : The player may cast spells that are otherwise break-restricted Magic.bypass_pvp : The player may cast spells that are otherwise PVP-restricted Magic.bypass_restricted : The player may build with restricted materials Magic.bypass_hidden : The player may see hidden spells in lists and tab-completion Magic.override_bind: : The player may use wands bound to other players Magic.bypass : The player may bypass other permission checks Magic.wand.override_drop : The player may drop undroppable wands and put them in chests Magic.wand.override_locked : The player may reconfigured locked wands Magic.wand.override_stash : The player may place a bound wand into a chest Magic.wand.use.protected : Player can use a wand with the “protected” flag set, meaning they are invincible Magic.wand.use.powered : Player can use a wand with the “powered” flag set, meaning they bypass certain restrictions
物品生成权限 Item Spawning Permissions
Magic.commands.mgive : Player can use /mgive to spawn any item Magic.commands.wand : Player can use /wand to spawn wands Magic.create. : Player can use /wand or /mgive to get a specific wand. All wands are available by default. -Magic.create.* : Negate this permission to use per-item/wand permissions for /wand and /mgive
法杖修改权限
Wand Modification Permissions