Inactive [ADMN/DEV] Permissions v2.7.4 (Phoenix) - DISCONTINUED! 3.0 has a new home!

Discussion in 'Inactive/Unsupported Plugins' started by TheYeti, Feb 25, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    TheYeti

    Permissions 2.7.4 (Phoenix) - Now with AntiBuild built in!
    Download:
    Latest Stable: Full Zip | Jar Only
    Latest Dev Build: Full Zip | Jar Only
    Previous Versions: 2.7.3 (JAR) | 2.7.2 (JAR) | 2.7.1 (JAR) | 2.7 (JAR) | 2.6 (JAR) | 2.5.5 (JAR) | 2.5.4 (JAR) | 2.5.3 (JAR) | 2.5.2 (JAR) | 2.5.1 (JAR) | 2.5 (JAR) | 2.4 (JAR) | 2.3 (JAR) | 2.2 (JAR)

    Plugin Authors: How to hook into Permissions

    Permissions 2.x is being discontinued! 3.0 can be found HERE!!!


    I am discontinuing Permissions 2.x and leaving the project. Permissions is not going away though! Since 2.6 I have been working closely with another developer and added them to the team. For the past several version they have not only been assisting with 2.x but also doing a lot of the development of much anticipated 3.x. rcjrrjcr will be taking over as lead developer of Permissions from 3.x forward. I have full faith in them and after working closely with them on the development on the last few version and the next major version I feel that I am leaving this project in more than capable hands. I put way to much work into this project to just leave it with anyone, and this is one of the few programs that I am incredibly proud of.

    Many people will probably wonder why I am leaving again after taking over the project just a few months ago. I could quote drama and headaches, of which there were quite a few with this project. Unfortunately real life happens. Many people already know that I have been having medical issues here lately. Unfortunately while they have gotten better, they have not gone away. This coupled with other real life commitments, going to school full time, and starting up my own company, I am currently in the process of being laid off from work. At this point I have so much stuff going on in my life and am being pulled in so many directions that I am not able to get any work done on anything. This has lead to me missing commitments and letting people down on multiple things.

    Permissions is also a very high maintenance plugin that requires a lot of attention and time. Right now I am not able to devote that time and do not feel it is fair for me to try to continue to be the lead developer on it. I had originally thought that adding other members to the team would be helpful, but unfortunately this just lead to frustration for them and myself as I just was not able to commit to the project enough. Hence, 3.0 has been rewritten almost exclusively by rcjrrjcr with minimal contributions by myself.

    At this point I will be stepping away from the project to focus more on real life and to try to free up some time for other projects and to work with more individual like the wonderful HeroCraft Coding team to fulfill some commitments that I made to them a long time ago and sadly did not come through on. I feel that this is the best for all involved, both myself and the other Permissions developers, as well as the community who deserve someone who can contribute more time and attention to them and supporting them. I do not want to see Permissions end up like many other plugins with an absentee programmer and just slowly wasting away from a great plugin with a lot of potential to a headache with no support.

    I will still be active in the community, just not as much as not in the same way. I'm sure my server will be more than happy to have their head admin back and active again as well.

    Thank you and happy gaming.




    Changelog
    • 2.7.4
      • Added overload of has() and permissions() for plugin devs
    • 2.7.3
      • Fixed negate node add/remove bug.
    • 2.7.2
      • Fix for small subtle bug introduced in last minor version.
    • 2.7.1
      • Commit by DThielke to fix several bugs with programmatic modifications of user permissions.
    • 2.7
      • Further commits by rcjrrjcr
        • Removed negatedNode checks
        • Temp fix for NULL issue
        • WorldConfigurationModification to save only modified configs
        • Fix for cache problems
    • 2.6
      • Pulled in commits by rcjrrjcr
      • Fixed versioning. Last version should have technically been 2.6
      • Fixed invalid config file being written
      • Fixed erroneous conversion message.
    • 2.5.5
      • Updated to be compliant with CB600+
      • Further Maven Integration and Autobuilding
      • Better handling of configuration file errors.
        • If you do not have a world config file for the default world at startup it will now look for config.yml
        • If it cannot find that it will look for world.yml instead in case you named it that when that is not what is in level-name:
        • It will rewrite the config file to be the proper name. At this time it does not delete the old one though.
      • Removed defunct public abstract calls. If your not using the right one by now you should be shot anyway.
    • 2.5.4
        • Added Command aliases for perms and pr
        • Changed the way directories are handled.
        • Stopped it from creating an empty <world>.yml file in base directory
        • Moved project to using Maven.
    • 2.5.3
      • Change from File.pathSeparator to File.separator to fix multiworld perms
    • 2.5.2
      • Added more instructions to the included config file within the plugin
      • Added a check that will use the default world permissions if a world specific config file cannot be found.
      • Added a function to get only the group that a player is assigned to without checking for group inheritance.
      • Added a change to colorize() to fix it hopefully not adding an extra unneeded ascii character and thus creating a linebreak/color switch issue
      • Removed permissions.info as it was not needed and was a artifact of testing I was doing.
    • 2.5.1
      • Fixed a bug that could cause a group to be returned as null for getGroups()
    • 2.5
      • Added in AntiBuild functionality to Permissions
      • Minor code tweaks
      • Added getGroups(world, player) to PermissionHandler so that plugins can call it to get all of a users groups
      • Fixed the inability to use the permissions -reload all command from within the console. I still need to do some more work on this as it doesn't seem to like to accept anything other than all from console.
    • 2.4
      • Refactored namespaces to keep in line with Java & Bukkit policy
        • This was cancelled as it ended up being not needed
      • Fixed setupPermissions()
    • 2.3
      • Undid removal of some code that I had overzealously purged during cleanup
      • Merged in last of Nijikokun's changes
      • Re-ordered the main class to attempt to fix the problems with Plugin API
    • 2.2
      • Developer change
      • Fixed reloading of configuration files
      • Moved commands to registering with plugin.yml
      • Commands now use onCommand instead of onPlayerCommand
      • Command is now /permissions instead of /pr
    [/SPOILER]
     
    mruczek, kahlilnc, Pii and 58 others like this.
  2. Offline

    Jeyge

    That's strange. By going to line 146, column 21 and putting a tab in the file you listed earlier, I was able to reproduce the error.
    Code:
    2011-05-07 23:00:32 [SEVERE] Could not load 'plugins\Permissions.jar' in folder 'plugins': 
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:138)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: while scanning for the next token
    found character     '\t' that cannot start any token
     in "<reader>", line 146, column 21:
                permissions:    
                            ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:592)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:132)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:58)
        at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:132)
        ... 13 more
    2011-05-07 23:00:32 [SEVERE] Could not load 'plugins\WeatherMan.jar' in folder 'plugins': Permissions
    org.bukkit.plugin.UnknownDependencyException: Permissions
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:125)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    Perhaps you are still editing the Survive.yml.yml file.
     
  3. Offline

    Wishbone

    I checked line 146 and I found nothing wrong...
     
  4. Offline

    justinchiuex

    Code:
    15:40:40 [SEVERE] Could not pass event BLOCK_BREAK to Permissions
    java.lang.NullPointerException
        at com.nijiko.permissions.Control.getGroups(Control.java:620)
        at com.nijikokun.bukkit.Permissions.Listener.onBlockBreak(Listener.java:61)
        at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:400)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:156)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:99)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:433)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    I get this Problem when someone builds something
    The following picture shows what happend when i just start the permissions.jar file
     

    Attached Files:

  5. Offline

    dxfire

    You don't really have too, it's just a minor problem for me anyway...
     
  6. Offline

    Wishbone

    I have fixed my problem. I ended up redoing the whole config.
    Thanks anyways!
     
  7. Offline

    fffizzz

    Code:
    plugin:
        permissions:
            system: default
            copies: 'worldrd'
    
    Say I have the above setup, thats ALL thats in that file, works great for simple copy of permissions on another world. Am I able to add the groups and add extra permissions to that setup

    example
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance: null
            permissions:
        VIP:
            default: false
            info:
                prefix: '&7'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - commandbook.whereami
            - thunderjoin.thunderjoin
    
    So in the world that inherits the permissions from the other, this one would still have same users, but vip would be able to use thunderjoin?

    I ask, because i use php scripts to manage my users via my website, i use a lot of fopen calls as it is and want to limit it to 2 files if possible.

    thanks, hope that made sense.
     
  8. Offline

    deanesmay


    Thank you for the tips. First off, I used the Bukkit Permissions YAML Helper as recommended by TheYeti, and for whatever reason it's what put those things in alphabetical rather than hierarchical order. I don't know why but I assumed it must mean that it didn't matter. Maybe the tool isn't so reliable after all. I'll try reordering them hierarchically. But I'll try all your suggestions to see if they help and let you know.
     
  9. Offline

    Dragonntiger

    oh my bad.. but wat about my other ranks besides admin? they can't do stuff because their commands get denied
     
  10. Offline

    mf9120

    i pretty much think i figured it out, im justa dumbass, i made the entire city aregion then inside made more regions and realized that its probably that they need access to both right? or am i kidding myself? im gonna try deleting the region save file and redoing the regions much more precisely, also, the mods have no region commands, they just are added as an owner than they get it and cant modify it unless theyre admin.
     
  11. Offline

    Jeyge

    I think you are going about it the right way by setting up a global city region then defining user areas inside that region. The one thing you may have missed is setting the user areas parent to the city region. After you set a users region called foo, then type /region setparent foo city. Now the permissions for the region foo should override the parents region.
     
  12. Offline

    MLBKing

    How do I set up multiworld permissions with iChat?
     
  13. Offline

    cliff777

    iChat can't take colors and groups from permissions. Any help?
     
  14. Offline

    Minerhax444

    I need to uninstall permissions (there's no point of having it on my server, since we now only have one group). I tried to delete all Permissions-related things from the Plugins folder, but when someone tries to type certain commands or whatever, they get an error message that they don't have permission. If I can't figure out how to uninstall permissions, how can I just give a group every permission?
    And also, according to the Console, all my plugins are detecting permissions.

    Oh, and here's everything in my plugins folder:

    Code:
    ChocolateFever
    ChocolateFever.jar
    CraftBook.jar
    CraftBookCircuits
    CraftBookCircuits.jar
    CraftBookCommon
    CraftBookMechanisms
    CraftBookMechanisms.jar
    Essentials
    Essentials.jar
    EssentialsChat.jar
    EssentialsGeoIP
    EssentialsGeoIP.jar
    EssentialsGroupBridge.jar
    EssentialsGroupManager.jar
    EssentialsProtect.jar
    EssentialsSpawn.jar
    GroupManager
    HeroicDeath
    HeroicDeath.jar
    iConomy
    iConomy.jar
    Interest-1.6.jar
    Interesting Places
    LavaSurvival
    LavaSurvival.jar
    MoveCraft
    MoveCraft.jar
    NaturalGiants
    NaturalGiants.jar
    Nethrar
    Nethrar.jar
    nSpleef
    nSpleef.jar
    PortalGun.jar
    Seasons
    Seasons.jar
    SimpleSignEdit
    SimpleSignEdit.jar
    ThisBiome.jar
    War
    War.jar
    WorldEdit
    WorldEdit.jar
     
  15. Offline

    fffizzz

    EssentialsGroupBridge.jar
    EssentialsGroupManager.jar
     
  16. Offline

    yoshi824

    can someone help me out?

    Im trying to get this to work but for some reason only people that are OP's listed in the op.txt in the server folder can build/destroy blocks anywhere regardless if I have build set to true with their username.

    Anyone have advice?
     
  17. Offline

    Minerhax444

    Oh, duh...
    Thanks!
     
  18. Offline

    Freak_Gene

    hi i need help. i can gain cmd permission at all idk if its my name or what but i always get the "You dont have permission to do this" when i try to use a cmd even though i have set where i can. i can still mine and all my addons r compatible with permissions idk what i have wrong i mean i even tryed to use the code genorator and that didnt help
    heres my code if it helps

    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        Freak_Gene:
            group: Admins
            permissions:
     
  19. Offline

    HotGamerMum

    Can someone help me with this. Thank you so much.
    Code:
    2011-05-09 04:36:48 [SEVERE] Could not load 'plugins\Permissions.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:138)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: while scanning a quoted scalar
     in "<reader>", line 86, column 15:
                    - 'lockette.admin.reload''
                      ^
    found unexpected end of stream
     in "<reader>", line 93, column 29:
    
        ^
        at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalarSpaces(ScannerImpl.java:1507)
        at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalar(ScannerImpl.java:1436)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchFlowScalar(ScannerImpl.java:846)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchSingle(ScannerImpl.java:831)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:339)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:510)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:58)
        at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:132)
        ... 13 more
    The config:
    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.
    #   Does not work for the default world.
    plugin:
        permissions:
            system: default
            copies:
    
    ##
    # 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:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-general.time'
    ##
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'iConomy.payment'
                - 'iConomy.list'
                - 'iConomy.rank'
                - 'portalstick.placeportal'
                - 'portalstick.deletegrill'
                - 'portalstick.creategrill'
                - 'portalstick.teleport'
                - 'lockette.user.create.*'
    
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Admin:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'lockette.admin.create.*'
                - 'lockette.admin.break'
                - 'lockette.admin.bypass'
                - 'lockette.admin.snoop'
                - 'lockette.admin.reload''
    ##
    # <Name> has control over all commands.
    ##
    users:
        <Name>
            group: Admin
            permissions: Default
     
  20. Offline

    mf9120

    YOU WERE TOTALLY RIGHT! THNX BRO! if you want to come on, you can have a free huge lot! ip: minecraft.matthew-finer.com
     
  21. Offline

    RingOfStorms

    So I tried to fix everything, still getting errors...

    [​IMG]

    the config:
    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
    ## a-
    #   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:
        Noob:
            default: true
            info: haha loooooooser!
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'lockette.user.create.*'
                - 'SpawnX.spawn'
                - 'torchmissile.SingeMode'
                - '-bc.tnt.allowed'
        Mod:
            default: false
            info: has give command
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.give'
                - 'essentials.item'
                - 'lockette.user.create.*'
                - 'SpawnX.spawn'
                - 'torchmissile.Normal'
                - '-bc.tnt.allowed'
        Admins:
            default: false
            info:Aaron
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'SpawnX.spawn'
                - 'creaturebox.*'
                - 'lockette.user.*'
                - 'lockette.admin.*'
                - 'torchmissile.Normal'
                - 'essentials.give'
                - 'essentials.item'
        God:
            default: false
            info: Only God has the power!
                prefix: ''
                suffix: ''
                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:
        RingOfStorms:
            group: God
            permissions:
        HunterRaven:
            group: Admins
            permissions:
        FenwayDraven:
            group: Mod
            permissions:
    
     
  22. Offline

    cliff777

    Ops can build/destroy no matter what. As for no one else being able to build, post your config
     
  23. Offline

    Jeyge

    It isn't your permissions file so that is good but now it gets hard to figure out what it exactly is. Are you getting any errors in your server.log file? If the are the BLOCK_PLACE or BLOCK_BREAK, then Permissions isn't picking up your permissions.yml file. That can be caused by the file not being named correctly. The easiest way to check for this is to look for a default file being created in your plugins folder called permissions<world name>.yml. If you aren't receiving an error, then post your server.log file and I'll take a look at it.

    Just a couple things wrong here. You have an extra ' on:
    - 'lockette.admin.reload''
    and your <Name> doesn't end with a :. Another thing to fix while you are fixing those would be your double defaults. You have 2 groups set to default.

    Both yml and xml are very touchy about how the files are set up and really don't like it if you just kind of do your own thing and in this case, that extra info after the info tags was messing things up. Give this version a try and it should fix things.
    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
    ## a-
    #   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:
        Noob:
            default: true
            info: #haha loooooooser!
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'lockette.user.create.*'
                - 'SpawnX.spawn'
                - 'torchmissile.SingeMode'
                - '-bc.tnt.allowed'
        Mod:
            default: false
            info: #has give command
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.give'
                - 'essentials.item'
                - 'lockette.user.create.*'
                - 'SpawnX.spawn'
                - 'torchmissile.Normal'
                - '-bc.tnt.allowed'
        Admins:
            default: false
            info: #Aaron
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'SpawnX.spawn'
                - 'creaturebox.*'
                - 'lockette.user.*'
                - 'lockette.admin.*'
                - 'torchmissile.Normal'
                - 'essentials.give'
                - 'essentials.item'
        God:
            default: false
            info: #Only God has the power!
                prefix: ''
                suffix: ''
                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:
        RingOfStorms:
            group: God
            permissions:
        HunterRaven:
            group: Admins
            permissions:
        FenwayDraven:
            group: Mod
            permissions:
    Is it taking anything from your permissions file? If not, perhaps your permissions file isn't actually being loaded. Check for a default file being created in your plugins directory called permissions<world name>.yml. If it is there, then we know Permissions isn't finding the correct <world name>.yml file in the permissions directory.
    If you already have a permissions file set up then you just need to copy that file to your new worlds yml file. So, if you have a world called "world" and one called "world2", you would just copy world.yml to world2.yml and iChat should continue to display your prefix and suffix.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  24. I installed it and everything, renamed the config to my world, all that. but when i run start.bat on my server it doesn't detect it as a plugin? ): halp plox.
     
  25. Offline

    TheHaHa

    This is the first time using permissions so I don't really know much. I read the instructions, installation guides, and the video but permissions still won't work.

    Plugins folder:
    [​IMG]

    Permission's config file:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '[Default]'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: '[Mod]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: '[Admin]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    Code:
    users:
        TheHaHa:
            group: Admins
            permissions:
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
    Server log:
    Code:
    [INFO] Starting minecraft server version Beta 1.5_02
    [INFO] Loading properties
    [INFO] Starting Minecraft server on *:25565
    [INFO] Preparing level "world"
    [INFO] Preparing start region
    [INFO] Done (1034811728ns)! For help, type "help" or "?"
    
    As you can see, it doesn't show any sign of having Permissions.

    I have CraftBukkit version 740 and the latest Permissions.
     
  26. Offline

    Jeyge

    It looks like you are running the default server and not CraftBukkit. Make sure the line in your run.bat looks like:
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar

    Does it detect any of your other plugins? Could you post your server.log file too so we can take a look at it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  27. Offline

    TheHaHa

    So I downloaded a fresh CraftBukkit from the main page, double clicked it and got these:

    Plugins
    world
    banned-ips
    banned-players
    bukkit
    craftbukkit-0.0.1-SNAPSHOT
    ops
    server
    server.log.lck
    server. properties
    white-list

    I didn't see any run.bat, though. Help?
     
  28. Offline

    Jeyge

    You'll want to start with the wiki.
     
  29. Offline

    TheHaHa

    Ah, nevermind.
     
  30. Offline

    RingOfStorms



    It is running on a craftbukkit, I currently have about 10 other plugins working, I want permissions to make it so I don't have to OP everyone. So it is on craftbukkit, I'm not an idiot. So it is something else, any ideas.
     
  31. Offline

    Jeyge

    Um, that was a response to TheHaHa. Take a look at my response to you.
     
Thread Status:
Not open for further replies.

Share This Page