Problem/Bug Why does this permissions.yml not work?

Discussion in 'Bukkit Help' started by Noah0302, Nov 7, 2019.

Thread Status:
Not open for further replies.
  1. Hi,

    so I just started to try out some plugins for my minecraft server!

    I looked for an example permissions file to tweak for my needs, but even the "working" example does not work with my server:
    "mapping values are not allowed here" after every default: true and inheritance:

    Config:
    Code:
    multiserver:
      use-netevents: true
    permissions:
      debug: false
      allowOps: false
      user-add-groups-last: false
      log-players: false
      createUserRecords: false
      backend: file
      informplayers:
        changes: true
      basedir: plugins/PermissionsEx
      backends:
        file:
          type: file
          file: permissions.yml
    updater: true
    alwaysUpdate: false
    
    Permissions:
    Code:
    groups:
      Gast
        default: true
        build: false
        prefix: '&7[Gast]&f'
        permissions
        - essentials.help
        - modifyworld.chat
        - modifyworld.*
        - essentials.home
        - essentials.sethome
        - essentials.back
        - essentials.tpa
        - essentials.tpaccept
      Spieler
        build: true
        inheritance:
        - Default
        prefix: '&6[Spieler]&f'
        permissions:
        - essentials.spawn
        - essentials.tpdeny
        - essentials.enchant
        - essentials.repair
      Bro:
        build: true
        inheritance:
        - Default
        prefix: '&b[Bro]&7'
        suffix: '&7'
        permissions:ยด
        - essentials.repair
        - essentials.heal
        - essentials.item
        - essentials.give
        - essentials.fly
        - essentials.kick
        - essentials.mute
        - essentials.tjail
        - essentials.jail
        - essentials.tempban
        - essentials.vanish
      Admin:
        build: true
        inheritance:
        - Moderator
        prefix: '&4[&cAdmin&4]&e'
        suffix: '&7'
        permissions:
        - essentials.gamemode
        - essentials.ban
        - essentials.unban
        - essentials.ipban
        - essentials.unipban
        - essentials.pardon
        - essentials.enchant
      Godlord:
        build:true
        inheritance:
        - Admin
        prefix: '&4[Godlord]'
        suffix: '&b'
        permissions:
        - '*'
    
    Plugins:
    [PlugMan] Plugins (12): ClearLag, Essentials, F3Name, KeepDeathDrop, LoginSecurity, Minepacks, OpenInv, PluginConstructorAPI, PlugMan, ServerRestorer, Timber, PermissionsEx

    PermissionsEx is the only plugin marked as red, not working!

    Here is the whole Permissions Plugin
     
    Last edited by a moderator: Nov 7, 2019
  2. Offline

    yPedx

    @Noah0302
    There are some missing characters in your permissions.yml
    Line 2: Missing colon after the word "Gast".
    Line 6: Missing colon after the word "Permissions"
    Line 15: Missing colon after the word "Spieler".
    Line 31: The character ' at the end of the line needs to be removed.
    Line 58: There needs to be a space between the colon and the word "true"

    That should fix it all.
     
    Last edited: Nov 7, 2019
    Noah0302 likes this.
  3. Wow, I can't beleive I'm that blind...
    Also the error printed out by the plugin does not seem that reliable showing what really is wrong :D

    Here is the new code:
    Code:
    groups:
      Gast:
        default: true
        build: false
        prefix: '&7[Gast]&f'
        permissions:
        - essentials.help
        - modifyworld.chat
        - modifyworld.*
        - essentials.home
        - essentials.sethome
        - essentials.back
        - essentials.tpa
        - essentials.tpaccept
      Spieler:
        build: true
        inheritance:
        - Default
        prefix: '&6[Spieler]&f'
        permissions:
        - essentials.spawn
        - essentials.tpdeny
        - essentials.enchant
        - essentials.repair
      Bro:
        build: true
        inheritance:
        - Default
        prefix: '&b[Bro]&7'
        suffix: '&7'
        permissions:
        - essentials.repair
        - essentials.heal
        - essentials.item
        - essentials.give
        - essentials.fly
        - essentials.kick
        - essentials.mute
        - essentials.tjail
        - essentials.jail
        - essentials.tempban
        - essentials.vanish
      Admin:
        build: true
        inheritance:
        - Moderator
        prefix: '&4[&cAdmin&4]&e'
        suffix: '&7'
        permissions:
        - essentials.gamemode
        - essentials.ban
        - essentials.unban
        - essentials.ipban
        - essentials.unipban
        - essentials.pardon
        - essentials.enchant
      Godlord:
        build: true
        inheritance:
        - Admin
        prefix: '&4[Godlord]'
        suffix: '&b'
        permissions:
        - '*'
    This should be working now, I will test it as soon as I get home.

    Thank you for the reply! :)
     
    Last edited by a moderator: Nov 8, 2019
    yPedx likes this.
Thread Status:
Not open for further replies.

Share This Page