Jump to content
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    [Plugin] Problème avec Permissions.


    Pi3rRick
     Share

    Recommended Posts

    Bonsoir,

    J'ai vu qu'il y avait plusieurs cas qui parlait de certains problèmes avec Permissions mais personne n'abordaient le mien. Pour ma part, Permissions ne fonctionne, tout simplement pas. Le principal problème étant que les joueurs "Défault" ont accès aux commandes Essentials, comme /god et /heal ...

    Voici ce que j'ai dans mon FTP :

     

    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the 
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
       permissions:
           system: default
           copies: 
    
    ##        
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true. 
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
       Default:
           default: true
           info:
               prefix: ''
               suffix: ''
               build: true
           inheritance:
           permissions:
               - 'essential.spawn'
               - 'essential.motd'
               - 'essential.home.set'
               - 'essential.home'
               - 'essential.list'
               - 'essential.msg'
       Moderator:
           default: false
           info:
               prefix: ''
               suffix: ''
               build: true
           inheritance:
               - Default
           permissions:
               - 'bar.foo'
       Admins:
           default: false
           info:
               prefix: '§0'
               suffix: '§0'
               build: true
           inheritance:
           permissions:
               - '*'
    
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
       Pi3rRick:
           group: Admins
       Bart:
           group: Admins
       Tex62:
           group: Admins
       kamikaze59:
           group: Admins
       lego62950:
           group: Admins

     

    Le fichier est installé à la Place de RENAME-ME dans le Dossier Permissions et dans le Sous-Dossier maps aussi. Merci de m'aider, voilà plus de 3 jours que je m'acharne sur ce poblème ...

    Edited by Adril
    Link to comment
    Share on other sites

    Les fichiers permissions se mettent sous balise code pour être plus facilement lisible:

     

    Exemple de Balise

    Est-ce que tu as bien ton fichier permissions comme ceci :

     

    /games/minecraft/craftbukkit/plugins/Permissions/[color=Red]Nom_de_ton_monde[/color].yml

    Avec exactement le même nom (il doit respecter la case, attention aux majuscules) que celui du dossier de ton monde?

     

    ---EDIT---

     

    J'ai repéré une erreur dans ta configuration :

     

    Admins:
           default: false
           info:
               prefix: '§0'
               suffix: [color=Red]'§0'[/color]
               build: true
           inheritance:
           permissions:
               - '*'

     

    Ce n'est pas § comme affiché sur l'indicateur de couleur que tu as surement utilisé, mais un &.

     

    J'ai réédité un fichier de configuration plus claire, et corrigé, essaye le, je ne crois pas m'être tromper.

     

    plugin:
       permissions:
           system: default
           copies: 
    groups:
       Default:
           default: true
           info:
               prefix: ''
               suffix: ''
               build: false
           inheritance:
           permissions:
               - 'essential.spawn'
               - 'essential.motd'
               - 'essential.home.set'
               - 'essential.home'
               - 'essential.list'
               - 'essential.msg'
       Moderator:
           default: false
           info:
               prefix: ''
               suffix: ''
               build: true
           inheritance:
               - Default
           permissions:
               - 'bar.foo'
       Admins:
           default: false
           info:
               prefix: '&0'
               suffix: '&0'
               build: true
           inheritance:
           permissions:
               - '*'
    users:
       Pi3rRick:
         group: Admins
       Bart:
         group: Admins
       Tex62:
         group: Admins
       kamikaze59:
         group: Admins
       lego62950:
         group: Admins

    Edited by Noc52
    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

     Share

    ×
    ×
    • Create New...