Inactive [ADMN/INFO] Permissions v2.1 - Continuing the legacy.

Discussion in 'Inactive/Unsupported Plugins' started by Nijikokun, Jan 21, 2011.

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

    Nijikokun

    Permissions 2.1 (Handler)
    Download 2.1 (Jar Only)
    Older: 2.0, 1.9, 1.8, 1.7, 1.6, 1.5, 1.4, 1.3, 1.2, 1.1, 1.0

    Permissions... Done right.
    Permissions allows plugin-authors to utalize a permission system that handles group inheritance, globalized permission settings, and more. All the features of a fine-grained permission system in one plugin.​

    Features
    1. Groups
    2. Group Inheritance, Allows for groups to gain permissions from other groups.
    3. User Permission System
    4. Fine Grained Permission system.
      1. Allowing for Globalized permissions
    5. Easy to use, setup, and implement.
    6. Two cache layers, first from file to memory, then from memory to cache.
      1. Plugins can control cache since version 2.1
    7. And much more.
    For the users


    Permissions gives server admins great control, mostly in-game reloading. Simply use /pr and the file will be re-cached and never touched again until you need to reload it. This allows you to quickly give your users the commands that they need without having to restart the server.

    Installation for 2.0 down:
    1. Download the archive.
    2. Extract contents to the /plugins folder.
    3. Open up /plugins/Permissions/config.yml
      1. Read / modify.
      2. Save.
    4. Reload Server.
    Changelog

    • 2.1
      • Multiple-World support
      • New cache layer, and cache control support for plugins
      • Editing features for plugins to hook into
      • Exempt nodes
      • World copying
    • 2.0
      • Forgot.
    • 1.9
      • Fully fixes inheritance.
        • Groups now inherit groups of groups that inherit groups of...
      • Cache system implemented.
      • Plugin authors can now delegate a variable system if needed.
      • API Updated with two new functions to get the point of what they do across.
        • Along with the new variable checks.
    • 1.8
      • Fixes the broken globalized node issue.
        • node.* is called a `globalized node`
    Supporting Plugins




    I have hit the character limit for this post.​

    Thanks to:
    • sk89q for hiearchical and node system idea.
    • Creator of GroupUsers for api implementation.
    This author has stopped development of this plugin. It is no longer supported and I wouldn't ask for help here, as you won't get any. New Permissions
    -RightLegRed
     
  2. Offline

    M1nurThr3t

    ok im looking at creating a nother group that can only walk around.
    I currently have Default, Mods, Admins.

    is there a specific name i need to name it.
    anyone with this setup already can you post your config file?
     
  3. Offline

    ZionHD

    all u have to do is make another group like the others like the default group just like it. set the bulid to false. that will make it so that people wont be able to build. on the default group it should say defalut. set that to false and set it to true on the new group. make sure the new group is above the defalut group.make a diffent name for the new name like visitor.

    if you have any questions contact me on skype: Duhzaproductions

    i run junkyard129's server. if u need any help just contact me.
    hope this helped u.

    P.S. if u need me to make the file for u just tell me.
     
  4. Offline

    Taxen0

    You can name it whatever you want, just make sure you set build to false. (and default to true, if you want new players to belong to that category)
    -edit: ah, ZionHD beat me to it =P

    Now for my question =) is there a way to blacklist permissions? lets say i want my admin group to have all commands, except one. is there a simple way to add: -'*' and not -'X' or something like an "except" category under permissions?
     
  5. Offline

    Imamoose

    any help? says permissions isnt there?
     
  6. Offline

    Calvin

    The problem lies within buckets way of loading the plugins. You need to figure out a way to have the permissions plugin load before all the others, because as you see there, world edit loads, and then permissions loads. I haven't figured this out yet and no where I post does anyone respond :/ Have fun.
     
  7. Offline

    Nijikokun

    USE onEnable FOR PERMISSION LOADING IN YOUR PLUGINS.

    That way it can hook into permissions after the plugin has been intialized.

    This is how plugin loading works -> Plugins go through the initialization stage, ALL OF THEM IT DOESNT INITIALIZE ONE PLUGIN -> THEN ENABLE IT. IT DOES THEM ALL AT THE SAME TIME. Then each plugin begins to go through the onEnable stage where in sequence of a->z they are initialized. This way, no matter what you put in onEnable, permissions is already loaded and waiting for you to hook into it.

    HAPPY FACE.

    If you don't do this, and it doesn't work. Then that's your own fault for not reading the wiki. SADFACE.


    Also, Permissions has been tested and works with 320+ This means, YES IT WORKS WITH 336,337,etc etc until further notice.
    --- merged: Feb 17, 2011 6:21 AM ---
    Don't lie to people, its not how the loading goes. He has an error in his configuration file.

    You went out of a group and did incorrect nesting @Imamoose read how to correctly setup yaml files and learn to use the parser.
     
  8. Offline

    Sc1234freak

    Wow, what an amazing mod! Unfortunate though it appears that I am doing something wrong. As far as I know, I have structured my config file correctly, but all users, even the default group, and full access to all of the permissions. Would someone please examine my config file to see what is causing the error, thanks. I use multiple mods, however I am trying to get this to work with general. The problem affects all mods, so it leads me to believe is is a code error with my permissions.

    Config.yml
    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system: default
    ##
    # Groups can contain inheritance.
    #  To make a group inherit the permissions from another
    #  group simply place the groups name in the "inheritance:"
    #  field seperated by commas.
    #
    #  Example: inheritance: Default,Admins,
    ##
    #  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:
    #
    #      - '*'
    ##
    groups:
        default:
            default: true
            info:
                prefix: '&f[Guest] &3'
                suffix: '&e'
                build: true
            permissions:
                - 'general.spawn'
        Member:
            default: false
            info:
                prefix: '&3'
                suffix: '&e'
                build: true
            inheritance: default
            permissions:
                - 'stargate.use'
                - 'SimpleWarp.warp'
                - 'SimpleWarp.setwarp'
                - 'general.time'
                - 'general.player-info'
     
        OP:
            default: false
            info:
                prefix: '&2[Op] &3'
                suffix: '&e'
                build: true
            inheritance: Member
            permissions:
                - 'kiwiadmin.ban'
                - 'kiwiadmin.kick'
                - 'kiwiadmin.unban'
                - 'kiwiadmin.reload'
                - 'general.items'
                - 'stargate.*'
                - 'general.teleport'
                - 'general.teleport.here'
        Admins:
            default: false
            info:
                prefix: '&4[Admin] &3'
                suffix: '&e'
                build: true
            inheritance:
                - OP
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all general commands.
    # sk89q can use /spawn & /setspawn
    ##
    users:
        Sc1234freak:
            group: Admins
            permissions:
            - 'general.*'
        ozbow93:
            group: Admins
            permissions:
            - 'general.spawn.set'
        andrew900:
            group: Member
            permissions:
            - 'general.spawn.set'
    The user account "andrew900" can implement the tp and give commands, along with listwarps, etc. Any Ideas?

    Thanks Ahead of Time,

    Sc1234freak
     
  9. Offline

    Calvin

    Well it's good to know the one guy I really don't like in the plugin community is also a douchebag. Not only do his plugins suck but he has the ego of a freakin universe to back them up. Nijikokun, go die in a hole. You will never be successful in technical support, thats for sure. I have now stopped using your plugins all together. Learn how to answer somebody's question without telling them they are a complete idiot and getting all caps lock on my ass.

    PS: I'm pretty sure I'm not the only one who first looked at your plugin names aka; iConomy, iBullshit, iWhatever; and wanted to puke in my mouth because you named them after apple's crappy logo shit.

    Have fun rolling in your self evidence albert einstein.
     
  10. Offline

    h0us3cat

    Can i "hide" the /version and /plugins commands from CraftBukkit with this plugin for my players?
    So only admin can do the commands.
     
  11. Offline

    Lewis

    Code:
    plugin:
        permissions:
            system: default
    
    groups:
        Default:
            default: true
            info:
            prefix: '&f[Guest] &3'
            suffix: '&e'
            build: true
            inheritance:
            permissions:
              - 'general.spawn'
        Member:
            default: false
            info:
            prefix: '&3'
            suffix: '&e'
            build: true
            inheritance:
              - 'Default'
            permissions:
              - 'stargate.use'
              - 'SimpleWarp.warp'
              - 'SimpleWarp.setwarp'
              - 'general.time'
              - 'general.player-info'
    
        OP:
            default: false
            info:
            prefix: '&2[Op] &3'
            suffix: '&e'
            build: true
            inheritance:
              - 'Member'
            permissions:
              - 'kiwiadmin.ban'
              - 'kiwiadmin.kick'
              - 'kiwiadmin.unban'
              - 'kiwiadmin.reload'
              - 'general.items'
              - 'stargate.*'
              - 'general.teleport'
              - 'general.teleport.here'
        Admins:
            default: false
            info:
            prefix: '&4[Admin] &3'
            suffix: '&e'
            build: true
            inheritance:
              - 'OP'
            permissions:
              - '*'
    
    ##
    # DarkGrave has control over all general commands.
    # sk89q can use /spawn & /setspawn
    ##
    users:
        Sc1234freak:
            group: Admins
            permissions:
        ozbow93:
            group: Admins
            permissions:
        andrew900:
            group: Member
            permissions:
              - 'general.spawn.set'
    Try that.. Not changed much, nothing I know off which will fix your problem, but if it does.. Let me know and I'll tell you what it was.. lol
     
  12. Offline

    Starlight

    I have been all over the wiki and did not find anything about onEnable.. Where do I change this setting?
    And why is it not a default setting?

    I have tried to get Permissions to work for a long time now.. Still don't work..
    I posted all my configs and errors earlier in this topic!
     
  13. Offline

    Nachocuban

    He is referring to plugin authors, not users. There is no setting you can change.
     
  14. Offline

    arcanezzz

    How do i make a new group???
     
  15. Offline

    Imamoose

    Code:
    groups:
        Default:
             Default: true
             info:{prefix: '', suffix: '', build: false}
        Trusted:
             Default: false
             info:{prefix: '', suffix: '', build: true}
             inheritance:
             permissions: [general.spawn, essentials.msg, essentials.afk, essentials.rules, essentials.me, essentials.list, essentials.mail.send, essentials.help, essentials.tpaccept, essentials.tpdeny, essentials.tptoggle, essentials.spawn, essentials.warp, worldedit.superpickaxe.pickaxe, worldedit.superpickaxe.info, essentials.tpahere, essentials.tpa]
        Mods:
             Default: false
             info:{prefix: '', suffix: '', build: true}
             inheritance: [Trusted]
             permissions:[worldedit.navigation.jumpto, worldedit.navigation.up, worldedit.navigation.thru, essentials.ban, essentials.kick, essentials.tp, essentials.tphere]
        Admins:
             Default: false
             info:{prefix: '&6', suffix: '&6', build: true}
             inheritance: [Mods, Trusted]
             permissions: [worldgaurd.*, worldedit.superpickaxe.pickaxe.area, worldedit.superpickaxe.pickaxe.recursive, essentials.heal, essentials.plugin, essentials.ban, essentials.kick, essentials.setwarp, essentials.delwarp, essentials.tpo, essentials.tpohere]
        Owner:
             Default: false
             info:{prefix: '&6', suffix: '&6', build: true}
             inheritance: [Admin]
             permissions: ['*']
    anyone see anything obviously wrong here? i really cant find anything
     
  16. Offline

    Superhykle

    Code:
    plugin:
        permissions:
            system: default
    
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: false
            inheritance:
            permissions:
                - 'essentials.spawn'
        Member:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.jump'
    
        Trusted Member:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance: Default,Member
    
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.jump'
      
    Trial Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance: Default,Member,Trusted Member
    
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.jump'
                - 'essentials.ban'
                - 'essentials.time'
    
    Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance: Default,Member,Trusted Member,Trial Admins
    
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.ban'
                - 'essentials.jump'
                - 'essentials.item'
                - 'essentials.give'
                - 'essentials.time'
    
    Honorary Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance: Default,Member,Trusted Member,Trial Admins,Admins
    
            permissions: - '*'
    
    Owner:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance: Default,Member,Trusted Member,Trial Admins,Admin,Honorary Admins
            permissions: - '*'
        
    
    Anyone know what im doing wrong? cause the default/quest can build:S
     
  17. Offline

    Dan_Weaver

    Same question, what is and how do I use onEnable?
     
  18. Offline

    Volitle

    Anyone else getting a Warning messege saying [Warning] Missing a prefix or suffix for "groupname"

    When i do go to correct this issue it just messes up how I want the tags displayed

    Instead of [GroupName] Name:
    it does [GroupName] Name:

    My iChat is on the Default setting and when I'am changing the suffix to just white it causes the above to happen. If anyone has a solution to this it would be nice.

    thanks Vol
     
  19. Offline

    Sc1234freak

    No, I changed my account status to "Member" and I was able to list warps, and use the ka ban plugin. Any ideas why these commands just ignore my permessions?
     
  20. Offline

    Lewis

    Code:
    plugin:
        permissions:
            system: default
    
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: false
            inheritance:
            permissions:
                - 'essentials.spawn'
        Member:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.jump'
    
        Trusted Member:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance: Default,Member
    
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.jump'
    
    Trial Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance: Default,Member,Trusted Member
    
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.jump'
                - 'essentials.ban'
                - 'essentials.time'
    
    Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance: Default,Member,Trusted Member,Trial Admins
    
            permissions:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.msg'
                - 'essentials.ban'
                - 'essentials.jump'
                - 'essentials.item'
                - 'essentials.give'
                - 'essentials.time'
    
    Honorary Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
    
            permissions:
              - '*'
    
    Owner:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
              - '*'
    Make sure you have Anti-Build so the build: false can actually work.
    --- merged: Feb 17, 2011 11:31 PM ---
    Code:
    groups:
        Default:
             default: true
             info: {prefix: '', suffix: '', build: false}
        Trusted:
             default: false
             info: {prefix: '', suffix: '', build: true}
             inheritance:
             permissions: [general.spawn, essentials.msg, essentials.afk, essentials.rules, essentials.me, essentials.list, essentials.mail.send, essentials.help, essentials.tpaccept, essentials.tpdeny, essentials.tptoggle, essentials.spawn, essentials.warp, worldedit.superpickaxe.pickaxe, worldedit.superpickaxe.info, essentials.tpahere, essentials.tpa]
        Mods:
             default: false
             info: {prefix: '', suffix: '', build: true}
             inheritance: [Trusted]
             permissions: [worldedit.navigation.jumpto, worldedit.navigation.up, worldedit.navigation.thru, essentials.ban, essentials.kick, essentials.tp, essentials.tphere]
        Admins:
             default: false
             info: {prefix: '&6', suffix: '&6', build: true}
             inheritance: [Mods, Trusted]
             permissions: [worldgaurd.*, worldedit.superpickaxe.pickaxe.area, worldedit.superpickaxe.pickaxe.recursive, essentials.heal, essentials.plugin, essentials.ban, essentials.kick, essentials.setwarp, essentials.delwarp, essentials.tpo, essentials.tpohere]
        Owner:
             default: false
             info: {prefix: '&6', suffix: '&6', build: true}
             inheritance: [Admin]
             permissions: ['*']
    There ya go. Missing spaces before the prefix line, and on one of the Permission lines.
     
  21. Offline

    Plutonium239

    Have we figured out a way to more effectively reload permissions yet?

    It seems any plugins that use the example in the first post to implement Permissions require a reload for new permissions to take affect, which seems unnecessary.

    I noticed in Essentials they use a pretty sketchy work-a-round that grabs the PluginManager, gets a list of plugin's, and uses .getClass().getMethod("setupPermissions").invoke() on each one to get an updated PermissionsHandler, which works great for some plugins but if the plugin author followed the example on the first post once the Permissions variable is set it will not try to re-set it. To get around this I did a .getClass().getField("Permissions").set(plugin, null) but once again that won't solve the problem for all plugins.

    Is there a simple solution to this I am missing or is this functionality that simply doesn't exist?

    (Just to clarify, I realize issuing a server 'reload' would probably solve the problem, but that could potentially be a heavy operation that could touch a number of things above and beyond what uses Permissions.)
     
  22. Offline

    AndyPandy89

    getting this:
    PHP Fatal error: Call to undefined function mysql_connect() in /home/andy/getplayers.php on line 6
     
  23. Offline

    Plutonium239

    You need to install the mysql extension for PHP. What flavor of linux are you using?
     
  24. Offline

    AndyPandy89

    Ubuntu 10.10
    --- merged: Feb 18, 2011 5:12 AM ---
    Actually I figured it out
    apt-get install php5-mysql

    Thanks Plutonium239
     
  25. Offline

    Plutonium239

    You should be able to simply do
    Code:
    sudo apt-get install php5-mysql
    and that should fix it!
     
  26. Offline

    Ben Allison

    How can I make it so that default/moderator can't use /i,/item/give, commands and so admins can.
    thanks
    great plugin
     
  27. Offline

    Creekrat

  28. Offline

    Dan_Weaver

    Permissions don't seem to be loading at all.
    I've installed it correctly to the best of my knowledge.
    Code:
    2011-02-18 23:20:42 [INFO] Starting minecraft server version Beta 1.2_01
    2011-02-18 23:20:42 [INFO] Loading properties
    2011-02-18 23:20:42 [INFO] Starting Minecraft server on *:25565
    2011-02-18 23:20:42 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-405-gf77e79e-b323 (MC: 1.2_01)
    2011-02-18 23:20:42 [INFO] Preparing level "world"
    2011-02-18 23:20:42 [INFO] Preparing start region
    2011-02-18 23:20:43 [INFO] Preparing spawn area: 28%
    2011-02-18 23:20:44 [INFO] Preparing spawn area: 81%
    2011-02-18 23:20:46 [INFO] WorldGuard 3.2.1 loaded.
    2011-02-18 23:20:46 [INFO] WorldGuard: No known permissions plugin detected. Using configuration file for permissions.
    2011-02-18 23:20:46 [INFO] WorldGuard: Single session is enforced.
    2011-02-18 23:20:46 [INFO] WorldGuard: TNT ignition is PERMITTED.
    2011-02-18 23:20:46 [INFO] WorldGuard: Lighters are blocked.
    2011-02-18 23:20:46 [INFO] WorldGuard: Lava fire is blocked.
    2011-02-18 23:20:46 [INFO] WorldGuard: All fire spread is disabled.
    2011-02-18 23:20:46 [INFO] WorldEdit 3.2.2 loaded.
    2011-02-18 23:20:46 [INFO] WorldEdit: No known permissions plugin detected. Using configuration file for permissions.
    2011-02-18 23:21:00 [INFO] Loaded Essentials build 190 by Zenexer, ementalo, Eris, and EggRoll
    2011-02-18 23:21:01 [INFO] SimpleColours 1.01 enabled
    2011-02-18 23:21:01 [INFO] [MultiVerse] Permission system not enabled. Disabling plugin.
    2011-02-18 23:21:01 [INFO] [MultiVerse] - Disabled
    2011-02-18 23:21:05 [SEVERE] [BBROTHER] Permissions isn't loaded, there are no restrictions.
    2011-02-18 23:21:05 [INFO] BigBrother 1.5-SNAPSHOT initialized
    2011-02-18 23:21:05 [INFO] Done! For help, type "help" or "?"
    Any possible causes?
     
  29. Offline

    Babagahnoosh

    Code:
    plugin:
      permissions: {system: default}
    groups:
      Guest:
        default: false
        info: {prefix: '', suffix: '', build: false}
        inheritance: []
        permissions: [essentials.spawn, essentials.list]
      Default:
        default: true
        info: {prefix: '', suffix: '', build: true}
        inheritance: []
        permissions: [essentials.spawn, essentials.list, essentials.kit.*]
      Moderator:
        default: false
        info: {prefix: '', suffix: '', build: true}
        inheritance: [Default]
        permissions: [essentials.give, essentials.time]
      Admins:
        default: false
        info: {prefix: '', suffix: '', build: true}
        inheritance: [Moderator]
        permissions: ['*']
    users:
      babagahnoosh:
        group: Admins
        permissions: []
      damaffio:
        group: Guest
        permissions: []
    
    My commands work perfectly, the only problem is the build:true or false command. It isn't working. My Guest group is still able to build while I put it on false! Can anybody please tell me what the problem is?
     
  30. Offline

    Triton74

    Nice plugin! Well Done! :)

    Are there any plugin which can modify the members group with an ingame command?
    Im not Using Essentials and the Modify plugin broke my server. :(
    Any idea?
     
  31. Offline

    Lewis

    You need Anti-Built to make that command become active.
     
Thread Status:
Not open for further replies.

Share This Page