PermissionsEX不工作Minecraft服务器插件

时间:2017-11-03 14:09:56

标签: plugins server minecraft

My PermissionsEX工作正常,直到我开始添加权限 我几乎可以肯定问题出在permissions.yml文件中

以下是代码:

groups:
  default:
    options:
      default: true
    permissions:
    - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome
    - essentials.tpa
    - essentials.warp.*
  donator:
    options:
      prefix: '&2Donator: '
    permissions:
    - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome
    - essentials.tpa
    - essentials.warp.*
    - essentials.pay

  Member:
    options:
      prefix: '&aMember '
    permissions:
    - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome.multiple.member
    - essentials.tpa
    - essentials.warp.*
    - essentials.kits.member
    - essentials.afk
    - essentials.joinfullserver
    - essentials.enderchest
    - essentials.tpdeny
    - essentials.pay
  ridder:
    options:
      prefix: '&7&lRidder '
    permissions:
    - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome.multiple.ridder
    - essentials.tpa
    - essentials.warp.*
    - essentials.kits.member
    - essentials.afk
    - essentials.joinfullserver
    - essentials.enderchest
    - essentials.tpdeny
    - essentials.tpahere
    - essentials.kits.ridder
    - essentials.pay


  SlotGraaf:
    options:
      prefix: '&5&l&nSlotgraaf '
    permissions:
    - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome.multiple.slotgraaf
    - essentials.tpa
    - essentials.warp.*
    - essentials.kits.member
    - essentials.afk
    - essentials.joinfullserver
    - essentials.enderchest
    - essentials.tpdeny
    - essentials.tpahere
    - essentials.kits.ridder
    - essentials.kits.slotgraaf
    - essentials.nick
    - essentials.back
    - essentials.pay

  Prins:
 options:
      prefix: '&5&l&nPrins '
    permissions:
    - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome.multiple.prins
    - essentials.tpa
    - essentials.warp.*
    - essentials.kits.member
    - essentials.afk
    - essentials.joinfullserver
    - essentials.enderchest
    - essentials.tpdeny
    - essentials.tpahere
    - essentials.kits.ridder
    - essentials.kits.slotgraaf
    - essentials.nick
    - essentials.back
    - essentials.chat.color
    - essentials.kits.rp
    - essentials.pay
  Koning:
    options:
      prefix: '&e&l&nKoning '
    permissions:
    - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome.multiple.koning
    - essentials.tpa
    - essentials.warp.*
    - essentials.kits.member
    - essentials.afk
    - essentials.joinfullserver
    - essentials.enderchest
    - essentials.tpdeny
    - essentials.tpahere
    - essentials.kits.ridder
    - essentials.kits.slotgraaf
    - essentials.nick
    - essentials.back
    - essentials.chat.color
    - essentials.kits.rp
    - essentials.pay
    - essentials.feed
    - essentials.kits.koning
  Owner:
    options:
      prefix: '&e&l&nKoning '
    permissions:
    - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome
    - essentials.tpa
    - essentials.warp.*
    - essentials.kits.member
    - essentials.afk
    - essentials.joinfullserver
    - essentials.enderchest
    - essentials.tpdeny
    - essentials.tpahere
    - essentials.kits.ridder
    - essentials.kits.slotgraaf
    - essentials.nick
    - essentials.back
    - essentials.chat.color
    - essentials.kits.rp
    - essentials.pay
    - essentials.heal
    - essentials.kits.koning
    - essentials.feed
    - essentials.fly


  admin:
    permissions:
   - essentials.spawn
    - modifyworld.*
    - essentials.kit
    - essentials.balance
    - essentials.ignore
    - essentials.realname
    - essentials.msg
    - essentials.seen
    - essentials.seen.banreason
    - essentials.suicide
    - essentials.sethome
    - essentials.tpa
    - essentials.warp.*
schema-version: 1
users:
  5d0cd39d-a885-4c63-b2ad-f988da45f666:
    group:
    - admin
    options:
      name: de_hongerlijder
  8941157d-714b-41cb-adf4-9acf5d38fe98:
    group:
    - Koning
    options:
      name: mvelasco3

1 个答案:

答案 0 :(得分:0)

您的Yaml语法不正确。在Online YAML Parser复制并粘贴它时,会出现以下语法错误

  

ERROR:

     

解析块映射时     在"",第2行,第5列:           团体:           ^

     

预计,但发现''     在"",第119行,第6列:            选项:

这意味着您的间距不正确。对于普通语法,您应该执行以下操作:

groups:
 default:
  options:
   default: true
  permissions:
  - essentials.spawn

注意间距。如果我要将它们更改为星号,只是为了视觉效果,它们就是这样的:

groups:
*default:
**options:
***default: true
**permissions:
**- essentials.spawn
(...)

但是如果我们看一下你的语法,在某些地方就错了。看看线条:

<强> 118

  Prins:
 options:
      prefix: '&5&l&nPrins '
    permissions:
    - essentials.spawn

应该是:

  Prins:
   options:
    prefix: '&5&l&nPrins '
   permissions:
    - essentials.spawn

<强> 217

 admin:
    permissions:
   - essentials.spawn
    - modifyworld.*

它应该是

 admin:
    permissions:
    - essentials.spawn
    - modifyworld.*