Petit problème de permissions

Lordgougou

Aventurier
26 Mars 2011
34
0
0
Bonjour, j'ai un tout dernier problème avec permissions:
Les joueurs du groupe admin possèdent bien toutes les permissions, mais ceux des autres groupes n'ont pas les permissions qui leur sont pourtant affiliée.
Pour mieux me faire comprendre, voici mon fichier permission :

Code:
# 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:
    Vagabonds:
        default: true
        info:
            prefix: '&6'
            suffix: '&6'
            build: false
        inheritance:
        permissions:
            -'essential.spawn'
            -'essential.motd'
            -'essential.home.set'
            -'essential.home'
            -'essential.list'
            -'essential.msg'
            -'iConomyChestShop.shop.use'
            -'iConomyChestShop.shop.sell'
            -'iConomy.payment'
            -'iconomy.access'
            -'iconomy.rank'
            -'iconomy.list'
    Citoyens:
        default: true
        info:
            prefix: '&6'
            suffix: '&6'
            build: true
        inheritance: Vagabonds
        permissions:
            -'iConomyChestShop.shop.create'
            -'lwc.protect'
            -'essential.spawn'
            -'essential.motd'
            -'essential.home.set'
            -'essential.home'
            -'essential.list'
            -'essential.msg'
            -'lwc.blockinventory'
    Admins:
        default: false
        info:
            prefix: '&c'
            suffix: '&c'
            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:
    Lordgougou:
        group: Admins
        permissions:
    flodor:
        group: Citoyens
        permissions:
    Player:
        group: Vagabonds
        permissions:

Donc par exemple, le joueur flodor ne peut ni acheter, ni créer de boutiques, ni même placer un sethome, alors que je peux le faire. Pourtant, d'après permissions, son groupe à bien ces autorisations.

Le parser YAML indique que tout est bon, donc je ne vois vraiment plus :(

Merci d'avance !
 
Tout d'abord essentials ne risque pas de fonctionner avec tes permissions actuelles, parce que, désolé de te le dire, mais tu ne sais pas lire ! Et oui, les permissions d'essentials, ce n'est pas "essential" mais "essentials" !

Je ne connais pas non plus ta version d'iConomyChestShop, mais dans la dernière, tes permissions sont obsolètes :
iConomyChestShop.shop.create - creating a shop
iConomyChestShop.shop.buy - using the shop
iConomyChestShop.shop.sell - selling to shops

Pour le reste, tu ne sais pas comment fonctionne un fichier de permission, j'ai fait un tuto pourtant. Tu m'expliques pourquoi tu fais de l'heritage alors que ajoutes les mêmes permissions ? Faut absolument éviter qu'un groupe (et donc un joueur) possède plusieurs fois la même permission, ça cause des problèmes.
 
Merci pour ton aide, pour le "s" du essential, ça vient d'un site qui devait donné des erreurs, pasque je me suis contenté de faire un copié/collé.
Pour le iconomy, il manquait effectivement le 'iConomyChestShop.shop.buy', mais les deux autres étaient bons. Enfin je crois :?
Enfin, pour l'héritage, j'ai corrigé, je pensais pas que l'ajout de permissions pouvaient posé problème.
J'attends de voir si ça marche, j'espère.
Merci en tout cas :)
 
Le 'iConomyChestShop.shop.use' n'existe plus.

Pour ce qui est d'Essentials, pour le configurer, faut se référer au wiki officiel pour le nom des permissions, c'est un conseil.
 
Truelle a dit:
Le 'iConomyChestShop.shop.use' n'existe plus.

Pour ce qui est d'Essentials, pour le configurer, faut se référer au wiki officiel pour le nom des permissions, c'est un conseil.

A l'avenir, j'aviserais :)

Bon, par contre mon problème persiste: impossible pour flodor te faire /home, d'acheter, ou même de /rules.

voici mon permissions corrigé :

Code:
# 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:
    Vagabonds:
        default: true
        info:
            prefix: '&6'
            suffix: '&6'
            build: false
        inheritance:
        permissions:
            -'essentials.spawn'
            -'essentials.motd'
            -'essentials.home.set'
            -'essentials.home'
            -'essentials.list'
            -'essentials.msg'
            -'iConomyChestShop.shop.sell'
            -'iConomyChestShop.shop.buy'
            -'iConomy.payment'
            -'iconomy.access'
            -'iconomy.rank'
            -'iconomy.list'
    Citoyens:
        default: true
        info:
            prefix: '&6'
            suffix: '&6'
            build: true
        inheritance: Vagabonds
        permissions:
            -'iConomyChestShop.shop.create'
            -'lwc.protect' 
            -'lwc.blockinventory'
    Admins:
        default: false
        info:
            prefix: '&c'
            suffix: '&c'
            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:
    Lordgougou:
        group: Admins
        permissions:
    flodor:
        group: Citoyens
        permissions:
    Player:
        group: Vagabonds
        permissions:

Voilà, merci encore à toi :)
 
Pour le /home, faut d'abord faire un /sethome et donc la permission :
'essentials.sethome' et non 'essentials.home.set', tu n'as pas regardé le wiki ?

Pour iConomy, d'après ce que je vois sur wiki, les permissions ne sont pas les mêmes, t'es pas à jour !
 
Truelle a dit:
Pour le /home, faut d'abord faire un /sethome et donc la permission :
'essentials.sethome' et non 'essentials.home.set', tu n'as pas regardé le wiki ?

Pour iConomy, d'après ce que je vois sur wiki, les permissions ne sont pas les mêmes, t'es pas à jour !

Merci, mais pour le chest shop, tout à l'air bon d'après : http://verywiki.net/en/Plugin_MineCraft_:_ChestShop , pourtant ça marche pas :(
 
Bon, je me permet de up mon topic parce que je suis complètement largué.
J'ai tout testé et je ne vois vraiment pas d'ou viens le problème.

Dernièrement, j'ai éditer ce fichier permissions :

Code:
# 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:
    Vagabonds:
        default: true
        info:
            prefix: '&6'
            suffix: '&6'
            build: false
        inheritance:
        permissions:
            -'essentials.spawn'
            -'essentials.motd'
            -'essentials.sethome'
            -'essentials.home'
            -'essentials.list'
            -'essentials.msg'
            -'iConomy.access'
            -'iConomy.rank'
            -'iConomy.list'
            -'iConomy.payment'
            -'iConomyChestShop.shop.create'
            -'lwc.protect' 
            -'lwc.blockinventory'
            -'iConomyChestShop.shop.buy'
            -'iConomyChestShop.shop.sell'
    Citoyens:
        default: false
        info:
            prefix: '&6'
            suffix: '&6'
            build: true
        inheritance:
        permissions:
            -'*'
    Admins:
        default: false
        info:
            prefix: '&c'
            suffix: '&c'
            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:
    Lordgougou:
        group: Admins
        permissions:
    flodor:
        group: Citoyens
        permissions:
    Player:
        group: Vagabonds
        permissions:

Et je me suis donc mis dans le groupe "citoyens", je devrais avoir logiquement les même permissions que l'admin (puisque y'a "*"), et pourtant, que ce soit pour /cprivate, /sethome ou même acheter/vendre/créer une boutique, j'ai droit au même messasge "you don't have permissions to do that", alors qu'en changeant juste mon groupe en "Admins", pas de problème tout est bon.
Donc je vois vraiment pas, à part mettre tous les autres joueurs en Admins, auxquels cas ils pourraient profiter des commandes essentials ce à quoi je ne tiens pas :(
 
Tu as essayé de mettre un espace entre le "-" et le '*' pour que ça donne :
Code:
- '*'

au lieu de :
Code:
-'*'
 
Truelle a dit:
Tu as essayé de mettre un espace entre le "-" et le '*' pour que ça donne :
Code:
- '*'

au lieu de :
Code:
-'*'

Hum, j'ai essayé à l'instant, ça ne change rien. Je ne vois vraiment pas d'ou vient le problème, j'ai tout essayé et demandé sur plusieurs forums, rien :(