Permissions.yml

Discussion in 'Bukkit Help' started by Kraxxi, Apr 14, 2011.

  1. Offline

    Kraxxi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey I am kinda new to this stuff, my server is running smoothly but I just can't get my head around the Permissions plugin, when I check it with the online parser it displays an error, and sometimes errors occur in the console as well.


    Code (Text):
    1. # System is no longer used, but may become used in the future
    2. # Copies is for multiple-world support
    3. #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    4. #   If this file is for your default world (the one in server.properties) then you must
    5. #   leave copies blank.
    6. #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    7. #
    8. # Make sure to rename this file to the name of the world that is in sever.properties under
    9. # level-name.  So if it is level-name: world  then this should be world.yml and in the
    10. # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    11. #
    12. # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    13. # doing this is to use Notepad++ and replace the tab with 4 spaces.
    14. plugin:
    15.     permissions:
    16.         system: default
    17.         copies:
    18.  
    19. ##
    20. # AntiBuild is included with this.  To disable a group from being able to build then
    21. # set the build: flag to false (build: false).  If you want a group to be able to build
    22. # then set it to true.
    23. ##
    24. # Groups can contain inheritance.
    25. #   To make a group inherit the permissions from another
    26. #   group simply place the groups name in the "inheritance:" like so:
    27. #
    28. #   Example:
    29. #       inheritance:
    30. #           - Default
    31. ##
    32. #   All permissions including the asterisks must be placed in single quotes.
    33. #   like so:
    34. #
    35. #       - 'foo.bar'
    36. #
    37. #   Otherwise errors will happen!
    38. ##
    39. #   Globalized Permission settings:
    40. #
    41. #       If a permission contains periods (.) you can denote a globalized parameter:
    42. #
    43. #           - 'foo.*'
    44. #
    45. #       This will allow you to use all general commands.
    46. #
    47. ##
    48. #   Single Asterisk denotes all commands:
    49. #
    50. #       - '*'
    51. #   If you give a group this permissions, do not have the group inherit any permissions
    52. #   from other groups.  Any users assigned to this group should NOT be given any additional
    53. #   permissions either.
    54. ##
    55. #   To exempt a node use the - prefix like so:
    56. #       - '-foo.bar'
    57. ##
    58. #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    59. #   such as iChat or HeroChat in order for these to do anything.
    60. groups:
    61.     Default:
    62.         default: true
    63.         info:
    64.             prefix: ''
    65.             suffix: ''
    66.             build: false
    67.         inheritance:
    68.         permissions:
    69.             - 'foo.bar'
    70.     Builder:
    71.         default: false
    72.         info:
    73.             prefix: ''
    74.             suffix: ''
    75.             build: true
    76.         permissions:
    77.             - 'warpz0r.free.sethome'
    78.             - 'warpz0r.free.home'
    79.             - 'lavasurvival.play'
    80.             - 'localshops.buysell'
    81.             - 'mcmmo.skills.*'
    82.             - 'mcmmo.regeneration'
    83.             - 'mcmmo.commands.ability'
    84.             - 'mcmmo.commands.ptp'
    85.             - 'mcmmo.commands.party'
    86.             - 'mcmmo.chat.partychat'
    87.             - 'herolock.chest.lock'
    88.             - 'herolock.chest.unlock'
    89.             - 'herolock.chest.change'
    90.         - 'warpz0r.sethome'
    91.             - 'warpz0r.home'
    92.             - 'warpz0r.worldhome'
    93.     Coolbuilder
    94.         default: false
    95.         info:
    96.             prefix: ''
    97.             suffix: ''
    98.             build: true
    99.         inheritance
    100.             - Builder
    101.         permissions:
    102.                - 'warpz0r.sethome'
    103.         - 'warpz0r.home'
    104.         - 'warpz0r.worldhome'
    105.     Moderator:
    106.         default: false
    107.         info:
    108.             prefix: ''
    109.             suffix: ''
    110.             build: true
    111.         inheritance:
    112.             - Coolbuilder
    113.             - Builder
    114.         permissions:
    115.             - 'lavasurvival.host'
    116.             - 'bedrockcontrol.getdrop'
    117.             - 'multiverse.tp'
    118.             - 'instabreak.toggle'
    119.             - 'instabreak.force'
    120.             - 'warpz0r.sethome'
    121.             - 'warpz0r.home'
    122.             - 'warpz0r.worldhome'
    123.     Admins:
    124.         default: false
    125.         info:
    126.             prefix: 'Deimudda'
    127.             suffix: ''
    128.             build: true
    129.         inheritance:
    130.         permissions:
    131.             - '*'
    132.  
    133. ##
    134. # Users denote which users are included in which group.
    135. # TheNo1Yeti is in the Admin group
    136. # Herpina is a member of the Moderator group but also has access
    137. # to the herp.derp permissions
    138. # Derpina is a member of the admin group but does not have access
    139. # to the derp.derp permission node
    140. # Users can also have a prefix and suffix as seen with Herpina
    141. ##
    142. users:
    143.     Kraxxi:
    144.         group: Default
    145.         permissions:
    146.     xKizunEx:
    147.         group: Coolbuilder
    148.         permissions:
    149.     Mauzel:
    150.         group: Admins
    151.         permissions:
    152.     mctod:
    153.         group: Admins
    154.         permissions:
    155.     Deppenkaiser:
    156.         group: Moderator
    157.         permissions:
    158.     lueon92:
    159.         group: Moderator
    160.         permissions:
    Help on this would be much appreciated.
    Also just on a sidenote, is there a mod that enables me to switch between peaceful/normal via command?

    Cheers,
    Kraxxi
     
  2. Offline

    alucart93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    there is one node error in here:
    Code (Text):
    1.     Coolbuilder
    2.         default: false
    3.         info:
    4.             prefix: ''
    5.             suffix: ''
    6.             build: true
    7.         inheritance
    8.             - Builder
    9.         permissions:
    10.                - 'warpz0r.sethome'
    11.         - 'warpz0r.home'
    12.         - 'warpz0r.worldhome'
    and one here:
    Code (Text):
    1.     Builder:
    2.         default: false
    3.         info:
    4.             prefix: ''
    5.             suffix: ''
    6.             build: true
    7.         permissions:
    8.             - 'warpz0r.free.sethome'
    9.             - 'warpz0r.free.home'
    10.             - 'lavasurvival.play'
    11.             - 'localshops.buysell'
    12.             - 'mcmmo.skills.*'
    13.             - 'mcmmo.regeneration'
    14.             - 'mcmmo.commands.ability'
    15.             - 'mcmmo.commands.ptp'
    16.             - 'mcmmo.commands.party'
    17.             - 'mcmmo.chat.partychat'
    18.             - 'herolock.chest.lock'
    19.             - 'herolock.chest.unlock'
    20.             - 'herolock.chest.change'
    21.         - 'warpz0r.sethome'
    22.             - 'warpz0r.home'
    23.             - 'warpz0r.worldhome'
    in the first one the - 'warpz0r.sethome' have to many nodes, about 6...
    and in the second its the : - 'warpz0r.sethome' 4 node more

    more errors i couldnĀ“t find
     
  3. Offline

    Andre_9796

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Will mean: - has to be under the first i in permissions.
     
  4. Offline

    Kraxxi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    just checking, I think its fine like this:

    Code (Text):
    1. # System is no longer used, but may become used in the future
    2. # Copies is for multiple-world support
    3. #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    4. #   If this file is for your default world (the one in server.properties) then you must
    5. #   leave copies blank.
    6. #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    7. #
    8. # Make sure to rename this file to the name of the world that is in sever.properties under
    9. # level-name.  So if it is level-name: world  then this should be world.yml and in the
    10. # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    11. #
    12. # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    13. # doing this is to use Notepad++ and replace the tab with 4 spaces.
    14. plugin:
    15.     permissions:
    16.         system: default
    17.         copies:
    18.  
    19. ##
    20. # AntiBuild is included with this.  To disable a group from being able to build then
    21. # set the build: flag to false (build: false).  If you want a group to be able to build
    22. # then set it to true.
    23. ##
    24. # Groups can contain inheritance.
    25. #   To make a group inherit the permissions from another
    26. #   group simply place the groups name in the "inheritance:" like so:
    27. #
    28. #   Example:
    29. #       inheritance:
    30. #           - Default
    31. ##
    32. #   All permissions including the asterisks must be placed in single quotes.
    33. #   like so:
    34. #
    35. #       - 'foo.bar'
    36. #
    37. #   Otherwise errors will happen!
    38. ##
    39. #   Globalized Permission settings:
    40. #
    41. #       If a permission contains periods (.) you can denote a globalized parameter:
    42. #
    43. #           - 'foo.*'
    44. #
    45. #       This will allow you to use all general commands.
    46. #
    47. ##
    48. #   Single Asterisk denotes all commands:
    49. #
    50. #       - '*'
    51. #   If you give a group this permissions, do not have the group inherit any permissions
    52. #   from other groups.  Any users assigned to this group should NOT be given any additional
    53. #   permissions either.
    54. ##
    55. #   To exempt a node use the - prefix like so:
    56. #       - '-foo.bar'
    57. ##
    58. #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    59. #   such as iChat or HeroChat in order for these to do anything.
    60. groups:
    61.     Default:
    62.         default: true
    63.         info:
    64.             prefix: ''
    65.             suffix: ''
    66.             build: false
    67.         inheritance:
    68.         permissions:
    69.             - 'foo.bar'
    70.     Builder:
    71.         default: false
    72.         info:
    73.             prefix: ''
    74.             suffix: ''
    75.             build: true
    76.         permissions:
    77.             - 'warpz0r.free.sethome'
    78.             - 'warpz0r.free.home'
    79.             - 'lavasurvival.play'
    80.             - 'localshops.buysell'
    81.             - 'mcmmo.skills.*'
    82.             - 'mcmmo.regeneration'
    83.             - 'mcmmo.commands.ability'
    84.             - 'mcmmo.commands.ptp'
    85.             - 'mcmmo.commands.party'
    86.             - 'mcmmo.chat.partychat'
    87.             - 'herolock.chest.lock'
    88.             - 'herolock.chest.unlock'
    89.             - 'herolock.chest.change'
    90.             - 'warpz0r.sethome'
    91.             - 'warpz0r.home'
    92.             - 'warpz0r.worldhome'
    93.         Coolbuilder:
    94.         default: false
    95.         info:
    96.             prefix: ''
    97.             suffix: ''
    98.             build: true
    99.         inheritance:
    100.             - Builder
    101.         permissions:
    102.             - 'warpz0r.sethome'
    103.             - 'warpz0r.home'
    104.             - 'warpz0r.worldhome'
    105.     Moderator:
    106.         default: false
    107.         info:
    108.             prefix: ''
    109.             suffix: ''
    110.             build: true
    111.         inheritance:
    112.             - Coolbuilder
    113.             - Builder
    114.         permissions:
    115.             - 'lavasurvival.host'
    116.             - 'bedrockcontrol.getdrop'
    117.             - 'multiverse.tp'
    118.             - 'instabreak.toggle'
    119.             - 'instabreak.force'
    120.             - 'warpz0r.sethome'
    121.             - 'warpz0r.home'
    122.             - 'warpz0r.worldhome'
    123.     Admins:
    124.         default: false
    125.         info:
    126.             prefix: 'Deimudda'
    127.             suffix: ''
    128.             build: true
    129.         inheritance:
    130.         permissions:
    131.             - '*'
    132.  
    133. ##
    134. # Users denote which users are included in which group.
    135. # TheNo1Yeti is in the Admin group
    136. # Herpina is a member of the Moderator group but also has access
    137. # to the herp.derp permissions
    138. # Derpina is a member of the admin group but does not have access
    139. # to the derp.derp permission node
    140. # Users can also have a prefix and suffix as seen with Herpina
    141. ##
    142. users:
    143.     Kraxxi:
    144.         group: Default
    145.         permissions:
    146.     xKizunEx:
    147.         group: Coolbuilder
    148.         permissions:
    149.     Mauzel:
    150.         group: Admins
    151.         permissions:
    152.     mctod:
    153.         group: Admins
    154.         permissions:
    155.     Deppenkaiser:
    156.         group: Moderator
    157.         permissions:
    158.     lueon92:
    159.         group: Moderator
    160.         permissions:
    EDIT:

    Appearently, now nobody on this server has any permissions, no matter what group I add them to they just cant build or use any commands. Even admins can only dig away blocks
     
  5. Offline

    kakashi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    how dit you name your permissions file?
     
  6. Offline

    Andre_9796

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    as @kakashi said, the permssions config has to match the name of your world folder. rename it to {worldname}.yml
     
  7. Offline

    Kraxxi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    yeah i know that, its named 'world' :p

    It also seems to overwrite the op's file, which I wouldnt mind if it worked properly.
    I have to insert an error into the code so other people can build for some reason.
     
  8. Offline

    Kraxxi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    no ideas? anyone?
     

Share This Page