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

    MIKUiqnw0

    Would you be able to include a way to negate certain permissions from the wildcard '*' (inverse permissions)? For instance, I want my admin group to have all permissions except for /regionbypass from WorldGuard's region feature.
     
  3. Offline

    Kegan187

    What do I convert the text to? json? python? canonical yaml?
     
  4. Offline

    meee

    PHP:
    # 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:&7[User] &6
                suffix
    :
                
    buildtrue
            inheritance
    :
            
    permissions:
             - 
    'essentials.list'
             
    'essentials.home'
             
    'essentials.sethome'
             
    'essentials.mail'
             
    'essentials.helpop'
             
    'essentials.getpos'
             
    'essentials.whois'
             
    'essentials.spawn'
             
    'essentials.help'
             
    'essentials.motd'
             
    'essentials.afk'
             
    'essentials.rules'
             
    'essentials.msg'
             
    'general.items'
             
    'general.spawn'
             
    'general.player-info'
        
    Vip:
            default: 
    true
            info
    :
                
    prefix:&7[VIP] &2
                suffix
    :
                
    buildtrue
            inheritance
    :
             - 
    Admins,Mod
             
    Mod
            permissions
    :
             - 
    'essentials.tp'
             
    'essentials.tphere'
             
    'essentials.item'
             
    'essentials.give'
             
    'essentials.list'
             
    'essentials.home'
             
    'essentials.sethome'
             
    'essentials.mail'
             
    'essentials.helpop'
             
    'essentials.clearinventory'
             
    'essentials.getpos'
             
    'essentials.whois'
             
    'essentials.spawn'
             
    'essentials.time'
             
    'essentials.kit'
             
    'essentials.kit.KITNAME'
             
    'essentials.kit.*'
             
    'essentials.plugin'
             
    'essentials.help'
             
    'essentials.heal'
             
    'essentials.motd'
             
    'essentials.afk'
             
    'essentials.nuble
             - '
    essentials.sell'
             - '
    essentials.rules'
             - '
    essentials.msg'
             - '
    essentials.essentials'
             - '
    general.items'
             - '
    general.spawn'
             - '
    general.spawn.set'
             - '
    general.teleport'
             - '
    general.teleport.here'
             - '
    general.time'
             - '
    general.player-info'
        Mod:
            default: true
            info:
                prefix:&7[Mod] &c
                suffix:
                build: true
            inheritance:
             - Admins
            permissions:
             - '
    essentials.tp'
             - '
    essentials.tphere'
             - '
    essentials.item'
             - '
    essentials.give'
             - '
    essentials.list'
             - '
    essentials.home'
             - '
    essentials.sethome'
             - '
    essentials.mail'
             - '
    essentials.helpop'
             - '
    essentials.clearinventory'
             - '
    essentials.getpos'
             - '
    essentials.whois'
             - '
    essentials.spawn'
             - '
    essentials.time'
             - '
    essentials.kit'
             - '
    essentials.kit.KITNAME'
             - '
    essentials.kit.*'
             - '
    essentials.help'
             - '
    essentials.heal'
             - '
    essentials.motd'
             - '
    essentials.kick'
             - '
    essentials.ban'
             - '
    essentials.unban'
             - '
    essentials.banip'
             - '
    essentials.unbanip'
             - '
    essentials.afk'
             - '
    essentials.nuble'
             - '
    essentials.rules'
             - '
    essentials.msg'
             - '
    essentials.essentials'
             - '
    general.items'
             - '
    general.spawn'
             - '
    general.spawn.set'
             - '
    general.teleport'
             - '
    general.teleport.here'
             - '
    general.time'
             - '
    general.player-info'
        Admins:
            default: false
            info:
                prefix:&7[Admin] &9
                suffix:&9
                build: true
            inheritance:
            permissions:
             - '
    *'

    ##
    # DarkGrave has control over all general commands.
    # sk89q can use /spawn & /setspawn
    ##
    users:
        I_DaVe_I:
            group: Admins
             -Admins
            permissions:
             -'
    *'
        Dragoonkeel:
            group: Admin
             -Admin
            permissions:
             -'
    *'
    Can anyone tell me what i am doing wrong? I (I_DaVe_I) can't be admin (with all rights) OR normal user, how could this habben? I think i have no mistake inside but it won't work :( (my plugins: cleaner,general,bigbrother,vanish,wordledit and guard,ichat,hotswap,stargates,serverport,antibuild,lwc)
    Please help. Sorry for bad english i am from switzerland ;)
     
  5. Offline

    Jobsti

    prefix:&7[VIP] &2
    -> prefix: '&7[VIP] &2'
    -> space and ''

    inheritance:
    - Admins,Mod
    - Mod

    Should be:

    inheritance:
    - Admins
    - Mod


    http://yaml-online-parser.appspot.com/
    to check your config
     
  6. Offline

    Etsijä

    Well at least you are missing one single quote from the end of this line:

    - 'essentials.nuble
    --- merged: Jan 24, 2011 9:40 PM ---
    Actually, all of his prefix lines are missing those.
    --- merged: Jan 24, 2011 9:44 PM ---
    I'm sorry if this is a stupid question, but: I have been setting up a server, where the "Default" group does not have build rights (by using AntiBuild), and the only way the build rights are gotten are if I promote a user to "VIP" group. I think the only way I can promote users in my server via this plugin would be to edit the config.yml directly, right?

    Then does there exist a plugin which would allow me to do on server something like I did at hMod (don't remember what plugin it was though, since the server wasn't mine, I was just an admin):

    \modify foobar groups VIP

    (to promote the user "foobar") or something similar...?

    Also is the ops.txt at the server folder now completely obsolete if using Permissions plugin?
     
  7. Offline

    Mhalkyer

    You're missing a section at the very top, your inheritances are kinda wrong, and your user section is kind of wonky, and your spacing is bad. Try this:

    http://www.speedyshare.com/files/26467962/config.yml

    PHP:
    # Supports "Default" and "GroupUsers"

    plugin:
        
    permissions:
            
    system: default

    ##########
    # Groups #
    ##########

    groups:
        Default:
            default: 
    true
            info
    :
                
    prefix'&7[User] &6'
                
    suffix:
                
    buildtrue
            inheritance
    :
            
    permissions:
                - 
    'essentials.list'
                
    'essentials.home'
                
    'essentials.sethome'
                
    'essentials.mail'
                
    'essentials.helpop'
                
    'essentials.getpos'
                
    'essentials.whois'
                
    'essentials.spawn'
                
    'essentials.help'
                
    'essentials.motd'
                
    'essentials.afk'
                
    'essentials.rules'
                
    'essentials.msg'
                
    'general.items'
                
    'general.spawn'
                
    'general.player-info'
        
    Vip:
            default: 
    true
            info
    :
                
    prefix'&7[VIP] &2'
                
    suffix:
                
    buildtrue
            inheritance
    :
                - Default
            
    permissions:
                - 
    'essentials.tp'
                
    'essentials.tphere'
                
    'essentials.item'
                
    'essentials.give'
                
    'essentials.clearinventory'
                
    'essentials.time'
                
    'essentials.kit'
                
    'essentials.kit.KITNAME'
                
    'essentials.kit.*'
                
    'essentials.plugin'
                
    'essentials.heal'
                
    'essentials.nuble'
                
    'essentials.sell'
                
    'essentials.essentials'
                
    'general.spawn.set'
                
    'general.teleport'
                
    'general.teleport.here'
                
    'general.time'
        
    Mod:
            default: 
    true
            info
    :
                
    prefix'&7[Mod] &c'
                
    suffix:
                
    buildtrue
            inheritance
    :
                 - 
    Vip
            permissions
    :
                 - 
    'essentials.kick'
                 
    'essentials.ban'
                 
    'essentials.unban'
                 
    'essentials.banip'
                 
    'essentials.unbanip'
        
    Admins:
            default: 
    false
            info
    :
                
    prefix'&7[Admin] &9'
                
    suffix'&9'
                
    buildtrue
            inheritance
    :
            - 
    Mod
            permissions
    :
            - 
    '*'

    #########
    # Users #
    #########
    users:
        
    I_DaVe_I:
            
    groupAdmins
            permissions
    :
        
    Dragoonkeel:
            
    groupAdmin
            permissions
    :
    --- merged: Jan 24, 2011 9:57 PM ---
    It doesn't matter, I use 'canonical yaml'. What it will do is show you error's in the top right of the page. Once it generates output, that means your YML (on the left) is properly formatted
     
  8. Offline

    Kegan187

    oh okay, I, again, fail.
     
  9. Offline

    Mhalkyer

    Yes, the only way to change a user's 'group' is by manually editing the config.yml. I think Nijikokun is working on /modify. If not, I'm going to try and write a plugin to do it! lol.

    And yes, ops.txt is pretty much obsolete as long as your have a plugin to give /kick, /ban, etc. I use Essentials.
     
  10. Offline

    Etsijä

    OK thanks Mhalkyer for the info!
     
  11. Offline

    sawine

    Ok... this is seriously driving me nuts.

    http://pastebin.com/SuK8kFaB

    I know there are few mistakes in the command permissions, but atm im only focusing on setting groups and colors fine.

    So, can anyone tell me why the player called "tmskar" or "43v3r" gets gray name in game ?
    and also, i just updated to the latest version and now the "donate20green" group got messed up...

    Im trying to find the reasons behind all this... but i just dont get it. Some members have the "Member" tag and it works and for other members, it doesnt.

    Any clues ?

    Thanks

    EDIT: all the groups and colors works, but for some unknown reasons, it dont work for some users.
     
  12. Offline

    RoTide

    Ok, a player with all numbers "341540" for a username is killing permissions.

    Jan 24, 2011 5:28:52 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to Permissions
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    at com.nijiko.permissions.Control.load(Control.java:112)
    at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permissions.java:145)
    at com.nijikokun.bukkit.Permissions.Permissions$Listener.onPlayerCommand(Permissions.java:168)
    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:135)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:201)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:554)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:528)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:65)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)

    Tested by adding user 341540 and typing /pr.. Server coughs up that error.. When I change the username to "Test" it works just fine.

    Something is up with username comprised of integers, is there a workaround/fix that anyone knows of?

    Edit: Player with an integer at the END of their name, doesn't have issues.
    Edit: Player with an integer at the BEGINNING of the name, doesn't have issues.
    Edit: Player with an integer at the BEGINNING and END of the name, but has one letter in the middle somewhere, doesn't have issues.
    Edit: Player with nothing but integers for a name, errors out as seen above.
     
  13. Offline

    meee

    @Mhalkyer Thx, i diden't test it yet but i will try it morning. Which programm are you using to edit the config? I used NotePad ++ but that one won't work right for me. So any other programms? Do i write the text right? this isn't my first language :) Post from my iPod
     
  14. Offline

    drampelt

    Using this config: http://pastebin.com/NZJu11aH

    People in the Unregistered and Trusted groups can use /ban and /item and I have no idea why. Any help is appreciated.
     
  15. Offline

    laxofish

    I installed the plugin and when I set the privs for myself and my players cmd gave me quite a few lines of messages and I did not have the privileges. Do I have to install additional software or somthing of that nature or am I just doing it wrong?
     
  16. Offline

    Throk

    Hi! Is it a way to prohibit the use of '/spawn' and '/home' comands by some groups?
     
  17. Offline

    subarct1c

    I'm still getting the "You dont have permission for that command" after upgrading to 1.9 with the '*' under my perms using any plugin that supports Permissions. Also my users seem to be getting "No such player exists, please enter a valid name" on all commands using Permissions as well.
     
  18. Offline

    Master_Queef

  19. Offline

    Euthyphro

    I hope this mod will be using mysql soon, would love to set permissions based on a mysql table rather than flat files like this.
     
  20. Offline

    SliMeY_G

    An option to do so would be great.
     
  21. Offline

    Paramount5

  22. Offline

    Sejus

    Okay. I am a super noob So how do I add the permission to the plugin :/......
    Code:
    2011-01-24 19:45:28 [INFO] [iChat] Permission system not enabled. Disabling plugin.
    
     
  23. Offline

    RoTide

    does anyone know of a workaround for allowing players with all numbers for a name to not kill permissions?

    See post #793 for details...

    The person is an admin on my server and I can't get them added....
     
  24. Offline

    Bobertbarker

    So I thought I had Permissions set up correctly, but now it doesn't list me as an admin, and no commands work, other than WorldEdit, which is allowed to Defaults for some odd reason. I know the spacing won't transfer properly if I post it here, So I'll upload the YML file. Thanks.
    *note- I changed it to a .txt file since you can't upload YMLs
     

    Attached Files:

  25. Offline

    bwe95

    Umm can someone check this
    http://pastebin.com/HQatytJD

    EDIT:my godmode plugin tells me you are not permitted to use this command but all my other plugin commands work just fine
     
  26. Offline

    Nijikokun

    Read the thread you are posting in.

    Invalid yaml files?
    http://yaml-online-parser.appspot.com/
     
  27. Offline

    uncovery

    It would be REALLY important that the plugin either can
    - reload the permission system before a user joins, or
    - accept the /pr command through the server console, or
    - have a permission right assigned to users to issue a /pr command without being able to modify the permissions as such.

    PLEASE!
     
  28. Offline

    Mukrakiish

    I've got my config working nicely. But my current default colors kind of suck the big one...so I went to edit them (very carefully by just deleting the # char and replacing it) which is enough to break the plugin. Can't for the life of me figure out why.

    Anyone had this issue come up?
     
  29. Offline

    uncovery

    You will need to say what is wrong. Do you get an error in the console? Paste your config here. Test it with the parser
    http://yaml-online-parser.appspot.com/
     
  30. Offline

    Phantom Index

    I can't get mine to work with essentials. I'm sure I put in the commands correctly, but once i have it as - 'essentials.home' They don't have access to use that command. So I want to know what's up with that.
     
  31. Offline

    Deages

    I've had a sudden, odd error.
    I just moved from group users to this and names are showing up as the old setup in groupusers...or so I think.

    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:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.helpop'
                - 'essentials.clearinventory'
                - 'essentials.getpos'
                - 'essentials.spawn'
                - 'essentials.help'
                - 'essentials.motd'
                - 'essentials.rules'
                - 'essentials.afk'
                - 'essentials.msg'
                - 'myhome.home.*'
        Donator:
            default: false
            info:
                prefix: '&1[&5Donator&1] &5'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.tree'
                - 'general.exempt.usage'
                - 'general.exempt.placing'
                - 'essentials.list'
                - 'essentials.kit'
        VIP:
            default: false
            info:
                prefix: '&1[&2VIP&1] &2'
                suffix:
                build: true
            inheritance:
                - Donator
            permissions:
                - 'essentials.bigtree'
                - 'magiccarpet.mc'
        OP:
            default: false
            info:
                prefix: '&2'
                suffix:
                build: true
            inheritance:
                - VIP
            permissions:
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.item'
                - 'essentials.give'
                - 'essentials.list'
                - 'essentials.home'
                - 'essentials.nick'
                - 'essentials.top'
                - 'essentials.time'
                - 'essentials.kick'
                - 'essentials.ban'
                - 'essentials.unban'
                - 'essentials.banip'
                - 'essentials.unbanip'
                - 'myhome.*'
                - 'vanish.*'
                - 'mcbans.*'
                - 'bb.admin'
        Admin:
            default: false
            info:
                prefix: '&4'
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        Deages:
            group: Admin
            permissions:
            - '*'
        Darkflux:
            group: Admin
            permissions:
            - '*'
        ratmatix:
            group: Admin
            permissions:
            - '*'
        BuddaT:
            group: Admin
            permissions:
            - '*'
        Razorthe6249th:
            group: OP
            permissions:
        Manetheran:
            group: OP
            permissions:
        Sibrand:
            group: VIP
            permissions:
        Sundeki:
            group: VIP
            permissions:
        aattlas:
            group: VIP
            permissions:
        Kaijev:
            group: Donator
            permissions:
        kvhokuto:
            group: Donator
            permissions:
        goldenaiii:
            group: Donator
            permissions:
    
    My name would be (in red) Deages, the ops name (in white) is Razorthe6249th.
    I set the admin tag prefix to :
    prefix: '&2[&4Admin&2] &4' but it would only show my name as red, as it was with group users as well as that all prefixes don't seem to work and only work off what I had with groupusers.
    Any ideas?

    plugin list: BigBrother, CraftIRC, Essentials, Guardian, MagicCarpet, McBans, MyHome, Permissions, vPlayersOnline.
     
Thread Status:
Not open for further replies.

Share This Page