插件手册:magic:权限

magic中的大多数权限都允许访问命令,并且(除了少数例外)只应授予mod或admin。

最常见的情况是,mods和admins应该具有以下访问所有magic命令和项目的权限:

Magic.commands.*

Magic.create.*

magic.*不是一个好主意,有许多权限用于绕过或其他功能,您可能不想一直打开。如果你需要绕道而行的话,最好用OP!

玩家不需要任何特殊权限。更多信息见下文。

默认情况下,所有玩家都可以使用魔杖和所有法术。可以通过取消以下权限节点来限制这一点:

  • -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

您也可以使用/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

默认情况下,操作系统有几个权限可以让它们绕过限制:

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

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

These commands can be used to modify wand items

Magic.commands.wand.describe : Player can use /wand describe to list information about a wand Magic.commands.wand.add : Player can use /wand add to add spells and brushes to wands Magic.commands.wand.add.spell. : Player may add a specific spell to a wand. All spells are allowed by default. Magic.commands.wand.add.material : Player may add a material to a wand. True by default. Magic.commands.wand.bind : Player can bind a wand to themselves Magic.commands.wand.unbind : Player can unbind a wand Magic.commands.wand.remove : Player can use /wand remove to remove spells and brushes from a wand Magic.commands.wand.create : Player can use /wand create to change an item into an empty wand Magic.commands.wand.destroy : Player can use /wand destroy to turn a wand into a normal item Magic.commands.wand.delete : Player can use /wand delete to delete a saved wand template Magic.commands.wand.enchant : Player can use /wand enchant to upgrade a wand randomly Magic.commands.wand.name : Player can use /wand name to rename a wand Magic.commands.wand.list : Player can use /wand list to see all wands Magic.commands.wand.save : Player can use /wand save to save a wand item to a new config template Magic.commands.wand.fill : Player can use /wand fill to add all available spells to a wand Magic.commands.wand.configure : Player can use /wand configure to change wand properties Magic.commands.wand.upgrade : Player can use /wand upgrade to upgrade wand properties Magic.commands.wand.duplicate : Player can use /wand duplicate to create a copy of a wand Magic.commands.wand.organize : Player can use /wand organize to reorganize their spell inventory Magic.commands.wand.restore : Player can use /wand restore to retrieve missing bound wands Magic.commands.wand.unlock : Player can use /wand unlock to unlock a locked wand and modify it Magic.commands.wand.override : Player can use /wand override to change cast overrides on a wand

The /wandp command permissions follow the same format as the /wand command. /wandp Works just like /wand but acting as another player. This can be used to make changes to a wand that another player is holding.

Magic.commands.wandp.* : Player can use /wandp commands on behalf of another player.

Magic.commands.mage.debug : Player can turn on debug information for themselves or another player Magic.commands.mage.check : Player can check permissions for spell casting, breaking, building, etc Magic.commands.mage.getdata : Player can check mage data or spell casts Magic.commands.mage.setdata : Player can modify mage data or spell casts Magic.commands.mage.reset : Player can completely reset a mage's data

The /mitem command can be used in-game to modify non-wand items

Magic.commands.mitem.add : Add enchantments, attributes or lore Magic.commands.mitem.remove : Remove enchantments, attributes or lore Magic.commands.mitem.describe : Show information about an item Magic.commands.mitem.duplicate : Create a copy of an item Magic.commands.mitem.destroy : Destroy an item Magic.commands.mitem.skull : Create a custom skull based on data in a book Magic.commands.mitem.save : Save an item as a new template Magic.commands.mitem.delete : Delete a saved item Magic.commands.mitem.worth : Show the value of an item Magic.commands.mitem.type : Change the type of an item Magic.commands.mitem.export : Export all items, names and worth a CSV file

Magic mob spawning and management commands:

Magic.commands.mmob spawn : Spawn a custom Magic mob Magic.commands.mmob list : List custom mob types Magic.commands.clear Clear custom mobs from all loaded worlds

There are specific permissions for the /mmap command

Magic.commands.mmap load : Load a new image map Magic.commands.mmap list : List all loaded image maps Magic.commands.mmap give : Give a player an image map Magic.commands.mmap import : Import image maps from Pixelator

The /cast command can be used in-game to cast spells.

Magic.commands.cast : Player can use /cast Magic.commands.cast.parameters : Player can use parameters with /cast Casting with parameters can be very dangerous, this should really only be given to server owners or highly trusted admins. For example, “/cast fire” is fine, but you probably don't want “/cast fire radius 1000”.

Magic.commands.magic.load : Reload spells.yml, wands.yml, config.yml and messages.yml. (And the defaults) Magic.commands.magic.[save|clean|search|list| .. etc] : All commands follow the same pnode format. This list may not be complete, check plugin.ymlhttps://github.com/elBukkit/MagicPlugin/blob/master/Magic/src/main/resources/plugin.yml for a full list of permissions

  • 插件手册/magic/权限.txt
  • 最后更改: 2019/02/15 16:34
  • 玛莎莎