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

    nossr50

    I am a little frustrated, I followed your guide to setup a plugin to use permissions and yet..
    [​IMG]

    In the main class for my plugin...
    Code:
    public static PermissionHandler Permissions = null;
    
    public void setupPermissions() {
            Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
    
            if(this.Permissions == null) {
                if(test != null) {
                this.Permissions = ((Permissions)test).getHandler();
                } else {
                log.info(Messaging.bracketize(name) + " Permission system not enabled. Disabling plugin.");
                this.getServer().getPluginManager().disablePlugin(this);
                }
            }
            }
    Yes the imports are there...

    And heres the snippet from my player listener that it is giving me a null pointer exception for
    Code:
    if (!mcMMO.Permissions.has(player, "mcmmo.party.ptp")) {
                    player.sendMessage(ChatColor.DARK_RED+"Insufficient permissions");
                    return;
                    }
    
    The instructions are simple yet here I am with a terribad disaster on my hands :p
     
  3. Offline

    chill1977

    I did. If you want to post your permissions configuration here then that's fine. Each plugin has it's own forum. If you want to post those configurations on their forums them please do so. I'm not knocking your willingness to help or trying to help but just saying this isnt professional or probrably acceptable by Bukkit staff.
    --- merged: Feb 8, 2011 12:44 AM ---
    GO READ!!!
     
  4. Offline

    zergling50

    Hey im kinda new to the whole server thing and plugins thing. im having trouble understanding what this does but a lot of stuff says it recommends or requires this. can you explain it to me and explain how to use it in a simple and noob friendly explanation?
    sry but i must say so far this is the most complicated looking plugin i have seen.
     
  5. Offline

    odielag

    I just did "/ver Permissions" and it returned "Permissions version 1.0"... I thought I downloaded the latest yesterday... Am I using 1.0, or is the version command not working correctly with the newest version of this plugin?
     
  6. Offline

    MrCamping

    Is it possible to add a user in 2 different groups?
     
  7. Offline

    Aircon

    Why Inst world edit recognizing this after the new patch?
    --- merged: Feb 8, 2011 12:41 PM ---
    how do you set individual prefixes for each person?
     
    regancali likes this.
  8. Offline

    jenso942

    Hey i really dont understand how to use this with the colours and all of it, could someone setup the config file for me, here are the plugins that im using(and im not sure which one of them that are compatible).
    -Jail
    -LWC
    -WorldEdit
    -WorldGuard
    -MinecartManiaCore + SignCommands and AdminControls
    -Spawnmob
    -Godpowers(or any other godmode plugin :)

    Here is the groups i would like to be specified
    -Owners (with light-purple color)
    -Admins (with red color)
    -Guest (without ability to build) (just white color)
    -User (with default commands) (green color)
    -Spawner (with only one other command than 'User', /item, cause im using an other plugin called 'Kikkit' which i like to use the commands in for tp and warp and item, getid.etc. (green color)
    -Henrik (just the same as spawner, but with black color)
    -Fie (same as spawner, but with dark blue color)

    Players assigned to groups:
    jenso942-owners
    synix1337-owners
    lager_nike-admins
    simonmette-admins
    frisch8-admins
    zxpwndzx-spawner
    1337slippyyy-owners
    melonman425-admins
    Hieronymus_Lex-henrik
    1337munk-admins
    chig0esrawr-fie
    xtrem159-user
    simon9828-user

    If someone could setup the config file for me, i would be much appreciated.

    -Jenso942
     
  9. Offline

    alvini

    Ehh,, this is mabye kinda dumb question, but how do i add a user to (ex) the moderator group?
     
  10. Offline

    Miech

    Create a third group that inherits from the other 2.
     
  11. Offline

    xPaw

    Is this going to haev MySql support? This holds me from moving out hMod :(
     
  12. Offline

    Tigerslay

    I got the problem that it won't load this plugin either, it's really messing up my server.
    Does anybody know when this is going to be fixed???
     
  13. Offline

    Lewis

    Code:
    plugin:
      permissions: {system: default}
    
    groups:
      Guest:
        default: true
        info: {prefix: '&f', suffix: '', build: false}
        inheritance: []
        permissions: [essentials.rules, essentials.afk]
    
      User:
        default: false
        info: {prefix: '&a', suffix: '', build: true}
        inheritance: [Guest]
        permissions: [essentials.spawn, essentials.warp, essentials.sethome, essentials.home]
    
      Spawner:
        default: false
        info: {prefix: '&b', suffix: '', build: true}
        inheritance: [User]
        permissions: [essentials.give]
    
      Fie:
        default: false
        info: {prefix: '&1', suffix: '', build: true}
        inheritance: [Spawner]
        permissions: []
    
      Henrik:
        default: false
        info: {prefix: '&0', suffix: '', build: true}
        inheritance: [Spawner]
        permissions: []
    
      Admin:
        default: false
        info: {prefix: '&c', suffix: '', build: true}
        inheritance: [Spawner]
        permissions: [essentials.kick, essentials.setwarp, essentials.time, essentials.tp, essentials.tphere,
        essentials.time, jail.command.jail, jail.command.jailcheck, jail.command.jaillist, jail.command.jailstatus]
    
      Owner:
        default: false
        info: {prefix: '&d', suffix: '', build: true}
        inheritance: [Admin]
        permissions: ['*']
    
    users:
      jenso942:
        group: Owner
        permissions: []
      synix1337:
        group: Owner
        permissions: []
      1337slippyyy:
        group: Owner
        permissions: []
      lager_nike:
        group: Admin
        permissions: []
      simonmette:
        group: Admin
        permissions: []
      frisch8:
        group: Admin
        permissions: []
      melonman425:
        group: Admin
        permissions: []
      1337munk:
        group: Admin
        permissions: []
      Hieronymus_Lex:
        group: Henrik
        permissions: []
      chig0esrawr:
        group: Fie
        permissions: []
      zxpwndzx:
        group: Spawner
        permissions: []
      xtrem159:
        group: User
        permissions: []
      simon9828:
        group: User
        permissions: []
    
      
    There ya go. :]. Added a few Essentials plugins like you told me to when you switch from Kikkit.
     
  14. Offline

    jenso942

    Youre god ;)
     
  15. Offline

    shatteredbeam

    Yar, I'd love to be able to continue using Permissions, but I long for it to support mySQL. The way this plugin is designed though, with an API, should allow for someone to build database support even if Niji doesn't build it in natively.

    Three tables would do it easy. A user table, a group table, and a permissions table that contains the (even YAML) strings for the different permissions. Possible db Schema:

    Users table -> user Perm table -> Group Table -> Permissions table


    User Table contains id prikey, username, and group ids
    Group Table contains id prikey, user id (referencing user table), and single user perms OR single user ref id
    Single user permissions override Group permissions. Group permissions contains user id, user ref, prefix, suffix, inheritance, and perm strings just like you'd place inside YAML files and could be pulled easily as an array.

    Not sure how viable this is, though. If anyone is interested PM me and I can send you a sample schema and that might make more sense.
     
  16. Offline

    DurtyFree

    Yes mysql support were awesome :D
     
  17. Offline

    junus123

    Please help me :default players cant use any command /help , /home ,/sethome etc. plax halp
     
  18. Offline

    Phinary

    I seem to have a problem... Is there any way I can change a user's group without having to go to the server files and changing the text file manually then restarting the server? :S thanks
     
  19. Offline

    diegokilla

    ok sry if this was stated previously, will the grps function in permissions not work without a seperate grp type plugin? which plugin is niji saying is compatible with permissions? cuz i've seen a couple that have group users in the title... could i possibly get a link?
    i guess what im basically saying is: if i have no group plugin, just permissions and say world edit, when i give a grp in permissions a node, and then put a user in that grp, they can't use said permission. with the exception of the default grp
     
  20. Offline

    Lewis

    Can you show me/us the code you have in your Permissions config.yml file?

    Also are the commands working for Admins? (This will tell us whether or not there is a problem with the Essentials plugin rather than Permissions.

    Thanks.

    Do you use Essentials? As far as I'm aware you can just type /modgrp *name* *group* and type /reloadall and the groups update instantly.
     
  21. Offline

    junus123

  22. I have a problem...

    Guests cannot build nor open doors but they can still steal from chests or kill other players...

    Is there some plugin that can prevent guests from doing anything that can possibly spoil the fun for players that do have rights?
     
  23. Offline

    pizclassy

    Ok so im pretty sure this is correct yet i get errors on some stuff
    EDIT:
    I went through this and found two missing ' where i put ; instead. also -'mywarp.*' is not a valid command.
    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:
        serf:
            default: true
            info:
                prefix: '&f'
                suffix: '&f'
                build: false
            inheritance:
            permissions:
                - 'essentials.spawn'
                - 'essentials.list'
                - 'essentials.help'
                - 'essentials.motd'
                - 'essentials.msg'
                - 'essentials.rules'
                - 'essentials.helpop'
        worker:
            default: false
            info:
                prefix: '&2'
                suffix: '&2'
                build: true
            inheritance:
                - serf
            permissions:
                - 'mywarp.warp.basic.warp'
                - 'mywarp.warp.basic.list'
                - 'essentials.clearinventory'
                - 'essentials.getpos'
                - 'essentials.whois'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.help'
                - 'essentials.ping'
                - 'essentials.realname'
                - 'essentials.compass'
                - 'essentials.depth'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'lwc.protect'
                - 'SpawnControl.groupspawn.use'
        VIP:
            default: false
            info:
                prefix: '&6'
                suffix: '&6'
                build: true
            inheritance:
                - worker
            permissions:
                - '*'
        knight:
            default: false
            info:
                prefix: '&2'
                suffix: '&2'
                build: true
            inheritance:
                - worker
            permissions:
                - 'essentials.kick'
                - 'essentials.ban'
                - 'essentials.unban'
                - 'magiccarpet.mc[COLOR=rgb(255, 0, 0)]'[/COLOR]
                - 'essentials.banip'
                - 'lwc.mod'
                - 'mywarp.warp.*'
        nobility:
            default: false
            info:
                prefix: '&5'
                suffix: '&5'
                build: true
            inheritance:
                - knight
            permissions:
                - 'essentials.*'
                - 'lwc.admin'
                - 'preciousstones.benefit'
                - 'preciousstones.whitelist'
                - 'preciousstones.bypass'
                - 'preciousstones.admin'
    [S]            - 'mywarp.*[/S]'
        Owner:
            default: false
            info:
                prefix: '&0'
                suffix: '&0'
                build: true
            inheritance:
                - nobility
            permissions:
                - '*'
    users:
        pizclassy:
            group: Owner
            permissions:
        iRapp:
            group: nobility
            permissions:
                - '*'
        bladecatcher:
            group: worker
            permissions:
        blackplatinum:
            group: nobility
            permissions:
     
  24. Offline

    outbreak

    with this command:
    (If your using essentials use this)
    /modgrp USERNAME GROUP

    only command I know to add user to specific group without actually modifying the file.
     
  25. Offline

    Legionarius

    Has anyone else noticed that permissions throws more than one null pointer exception per second? Each exception seems to be caused by permissions trying to use inheritance. Yes I am 2.0.
     
  26. Offline

    zergling50

    Hey im kinda new to the whole server thing and plugins thing. im having trouble understanding what this does but a lot of stuff says it recommends or requires this. can you explain it to me and explain how to use it in a simple and noob friendly explanation?
    sry but i must say so far this is the most complicated looking plugin i have seen.​
     
  27. Offline

    Lewis

    I too was struggling to find an error, so I simply rewrit it to the letter (Taking out a few pointless Inherits etc too, this came back with no errors and should work:

    Code:
    plugin:
      permissions: {system: default}
    
    groups:
      Serf:
        default: true
        info: {prefix: '&f', suffix: '&f', build: false}
        inheritance:
        permissions: [essentials.spawn, essentials.list, essentials.help, essentials.motd, essentials.msg, essentials.rules, essentials.helpop]
    
      Worker:
        default: false
        info: {prefix: '&2', suffix: '&2', build: true}
        inheritance: [Serf]
        permissions: [mywarp.warp.basic.warp, mywarp.warp.basic.list, essentials.clearinventory, essentials.getpos, essentials.whois, essentials.mail,
        essentials.mail.send, essentials.help, essentials.ping, essentials.realname, essentials.compass, essentials.depth, essentials.home, essentials.sethome,
        lwc.protect, spawncontrol.groupspawn.use]
    
      VIP:
        default: false
        info: {prefix: '&6', suffix: '&6', build: true}
        inheritance: []
        permissions: ['*']
    
      Knight:
        default: false
        info: {prefix: '&2', suffix: '&2', build: true}
        inheritance: [Worker]
        permissions: [essentials.kick, essentials.ban, essentials.unban, magiccarpet.mc, essentials.banip, lwc.mod, mywarp.warp.*]
    
      Nobility:
        default: false
        info: {prefix: '&5', suffix: '&5', build: true}
        inheritance: [Knight]
        permissions: [essentials.*, lwc.admin, preciousstones.benefit, preciousstones.whitelist, preciousstones.bypass, preciousstones.admin, mywarp.*]
    
      Owner:
        default: false
        info: {prefix: '&0', suffix: '&0', build: true}
        inheritance: []
        permissions: ['*']
    
    users:
      pizclassy:
        group: Owner
        permissions: []
      iRapp:
        group: Nobility
        permissions: ['*']
      bladecatcher:
        group: Worker
        permissions: []
      blackplatinum:
        group: Nobility
        permissions: []
      
        Owner:
            default: false
            info:
                prefix: '&0'
                suffix: '&0'
                build: true
            inheritance:
                - 'nobility'
            permissions:
                - '*'
    users:
        pizclassy:
            group: Owner
            permissions:
        iRapp:
            group: nobility
            permissions:
                - '*'
        bladecatcher:
            group: worker
            permissions:
        blackplatinum:
            group: nobility
            permissions:
    The format is absolutely fine to use (I find it easier also) :)
     
  28. Is it possible to have diffrent permissions per world?
    if not, i hereby request ^^
     
  29. Offline

    Jed1314

    Can you add users in-game yet ?

    Also, if you can't, how can you refresh the permissions without restarting the server ?
    Please don't tell me to read, I read the opening post and if you really expect people to trawl through 65 pages of code problems to find one small piece of information that is slightly unreasonable.
     
  30. Offline

    MinehubGaming

    is this updated to work with craftbukkit build 287?
     
  31. Offline

    GEN3RIC

    I hate to be that guy, but I just thought I'd bring up that on build 272, with a load of other plugins, I used /pr to reload the permissions and it affirmed that it worked, but at some point it completely revoked all of our permissions and I couldn't even use /pr to reload the permissions to get the rest of my Permissions-based commands to work. I'm not sure what caused that or why (no errors) but I figure maybe it's worth bringing up for the dev to think about.
     
Thread Status:
Not open for further replies.

Share This Page