Minecraft Permissions

Adokas Messages postés 3 Statut Membre -  
bricomachin Messages postés 245 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour, je met en place pour la deuxième fois un serveur minecraft sous bukkit 1.1 R4 et la dernière version de Permissions avec lequel j'ai un problème : j'aimerais que quelqu'un me dise les erreurs qu'il y a dans le config.yml ci-dessous parce que le plugin se désactive directement...Merci d'avance.
##  
# Permissions has AntiBuild, which prevents a player from destroying/placing blocks.
# To prevent a group of players 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 inherit from other groups.
#   To make a group inherit the permissions and info nodes from another
#   group, simply place the groups name in the "inheritance:" like so:
#
#   Example:
#       inheritance:
#           - Default
##
#   Wildcard Permission settings:
#
#       You can have wildcard nodes which encompass all nodes that match it.
#       For example, the node "modplugin.*" matches "modplugin.kick", "modplugin.ban",
#       "modplugin.settings.view", and so on.
#
##
#   A single asterisk means that this user/group has all permissions.
#       - '*'
##
#   Negated nodes are created by prefixing a normal node with "-".
#   They prevent less specific wildcard nodes from matching the negated node.
#   For example:
#   
#   permissions:
#       - 'foo.*'
#       - '-foo.bar'
#
#   In this case, the user/group will have "foo.foo", "foo.foobar", and so on, but not "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.
##
#
#   For more info, visit https://github.com/TheYeti/Permissions/wiki/Guide-to-creating-YAML-configs
#
##

groups:
    Visiteur:
        default: true
        info:
            prefix: ''
            suffix: ''
            build: false
        inheritance:
        permissions:
			- 'essentials.clearinventory'
			- 'authme.register'
			- 'authme.login'
			- 'authme.logout'
			- 'authme.changepassword'
			- 'authme.unregister'
			- 'wormhole.use.sign'
			- 'wormhole.simple.use'
    Membre:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
            - Visiteur
        permissions:
			- 'iConomy.holdings'
			- 'iConomy.holdings.others'
			- 'iConomy.help'
			- 'iConomy.payment'
			- 'essentials.getpos'
			- 'essentials.realname'
			- 'essentials.depth'
			- 'essentials.mail'
			- 'essentials.mail.send'
			- 'essentials.me'
			- 'essentials.home'
			- 'essentials.sethome'
			- 'essentials.ping'
			- 'essentials.whois'
			- 'essentials.afk'
			- 'essentials.rules'
			- 'wormhole.build'
    Moderateur:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
            - Membre
        permissions:
            - 'modplugin.ban'
            - 'modplugin.kick'
            - 'modplugin.unban'
    Admins:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
        permissions:
            - '*'


1 réponse

  1. bricomachin Messages postés 245 Date d'inscription   Statut Membre Dernière intervention   134
     
    Salut,

    essaie comme ça:

    groups:
        Visiteur:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
            - essentials.clearinventory
            - authme.register
            - authme.login
            - authme.logout
            - authme.changepassword
            - authme.unregister
            - wormhole.use.sign
            - wormhole.simple.use
        Membre:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Visiteur
            permissions:
            - iConomy.holdings
            - iConomy.holdings.others
            - iConomy.help
            - iConomy.payment
            - essentials.getpos
            - essentials.realname
            - essentials.depth
            - essentials.mail
            - essentials.mail.send
            - essentials.me
            - essentials.home
            - essentials.sethome
            - essentials.ping
            - essentials.whois
            - essentials.afk
            - essentials.rules
            - wormhole.build
        Moderateur:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Membre
            permissions:
            - modplugin.ban
            - modplugin.kick
            - modplugin.unban
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'


    J'ai enlevé les ' entres les commandes et remplacé les tabulation par 4 espaces. C'est très important d'utiliser des espaces et pas des tabulation en yaml ! J'ai aussi réduit l'indentation avant les héritages et les commandes. (8 espaces à la place de 12).

    Si tu utilise NotPad++ tu peux aller dans Paramétrage > Préférences... > Menu langage/tabulations. Et dans la liste tu vas tout en bas, tu choisi yaml, tu décoche valeur par défaut et tu coche insérer des espaces.

    @+

    Bricomachin
    0