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

    streedie

    Can't you just add a permission to a group?
     
  3. Offline

    Sargeo

    Yes, I know that. I was just testing it out to see if I could get the admin commands as a regular admin, without having to give all the commands to the admins. But it still does not work.
     
  4. Offline

    Arisilde

    I am trying to give my mods access to /pr and /mod. I gave them permissions.reload and permissions.* both and it still won't work. They can use /pr but not /mod. any suggestions? I'm using the newest version of Permissions.
     
  5. Offline

    Kurosaki

    Hi guys,

    I have some trouble... I don't get this permission plug in somehow... I thin I did everything right, but it doesn't work. I can't use the /clean command but everything else works. I had GroupUsers installed on the server but i removed it after I installed the permissions plugin.

    I hope you guys can help me

    http://pastebin.com/jCbHk0VK
     
  6. Offline

    tharvoil

    Want to report a problem with anybody having access to all commands as well. Running craftbukkit build 230.

    Needed to post this due to a greifer doing some mass-banning on my public server. For now the server's offline until a fix can be found.

    Heres my config file:


    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:
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.list'
                - 'essentials.spawn'
                - 'lwc.protect'
                - 'wormhole.use'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'lwc.mod'
                - 'lwc.protect'
                - 'wormhole.*'
        Admins:
            default: false
            info:
                prefix: '&1[&3Owner&1]&2'
                suffix: '&4'
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        tharvoil:
            group: Admins
            info:
                prefix: '&1[&3Owner&1]&2'
            suffix: '&4'
            permissions:
                - '*'
        vashiel92:
            group: Moderator
            permissions:
                - 'general.time'
     
  7. Offline

    barristerwa

    I'm not going to review all 61 pages for this question: Are there any plans to generate a gui interface for the settings on this plugin? Take for example the gui interface in mcmyadmin. Something like that for this plugin would be great.
     
  8. Offline

    Mac

    I have a problem with the prefixes. The prefix of group admin is just 'Admin' but when I say something in chat, it looks like this [AdminAdmin] Pyrodon18: blah

    Heres a copy of what I have in the permissions config.yml:

    Code:
       Admin:
            default: false
            info:
                prefix: '&9Admin'
                suffix:
                build: true
            inheritance:
                - Mod
            permissions:
                - '*' 
    Any help?
     
  9. Offline

    xquercus

    I have found similar behavior. I can't explicitly allow permissions.pr but if I allow permissions.* then the group can execute /pr. Not sure about the /mod command. If anyone knows how to specify these to command explicitly, I'd be interested to know.
     
  10. Offline

    eorl

    It's due to you having the prefix &9Admin, but by default each class gets they're group printed. So just keep it &9.

    Also, I'm having problems with the Permission.jar and it not loading properly, according to my console output.

    Code:
    05.02 14:37:49 [Multicraft] Minecraft stopped
    05.02 14:37:48 [Multicraft] Minecraft shut down
    05.02 14:37:48 [Server] INFO Saving chunks
    05.02 14:37:48 [Server] INFO Stopping server
    05.02 14:37:48 [Server] INFO CONSOLE: Stopping the server..
    05.02 14:37:47 [Server] INFO CONSOLE: Forcing save..
    05.02 14:37:47 [Multicraft] Stopping Minecraft!
    05.02 14:35:23 [Server] Startup Done! For help, type "help" or "?"
    05.02 14:35:23 [Server] INFO Loaded Essentials b136 by Zenexer, ementalo, Eris, and EggRoll
    05.02 14:35:23 [Server] WARNING Warps were not found in warps folder
    05.02 14:35:23 [Server] INFO     ... 13 more
    05.02 14:35:23 [Server] INFO     at com.nijikokun.bukkit.Permissions.Permissions.(Permissions.java:74)
    05.02 14:35:23 [Server] INFO     at org.bukkit.plugin.java.JavaPlugin.(JavaPlugin.java:46)
    05.02 14:35:23 [Server] INFO     at org.bukkit.util.config.Configuration.load(Configuration.java:62)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    05.02 14:35:23 [Server] INFO     at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
    05.02 14:35:23 [Server] INFO
    05.02 14:35:23 [Server] INFO           ^
    05.02 14:35:23 [Server] INFO           Builder:
    05.02 14:35:23 [Server] INFO  in "", line 45, column 7:
    05.02 14:35:23 [Server] INFO expected , but found BlockMappingStart
    05.02 14:35:23 [Server] INFO         ^
    05.02 14:35:23 [Server] INFO         Default:
    05.02 14:35:23 [Server] INFO  in "", line 36, column 5:
    05.02 14:35:23 [Server] INFO Caused by: while parsing a block mapping
    05.02 14:35:23 [Server] INFO     ... 8 more
    05.02 14:35:23 [Server] INFO     at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:76)
    05.02 14:35:23 [Server] INFO     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    05.02 14:35:23 [Server] INFO     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    05.02 14:35:23 [Server] INFO     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    05.02 14:35:23 [Server] INFO     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    05.02 14:35:23 [Server] INFO Caused by: java.lang.reflect.InvocationTargetException
    05.02 14:35:23 [Server] INFO     at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    05.02 14:35:23 [Server] INFO     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:186)
    05.02 14:35:23 [Server] INFO     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
    05.02 14:35:23 [Server] INFO     at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:143)
    05.02 14:35:23 [Server] INFO     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:156)
    05.02 14:35:23 [Server] INFO     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:42)
    05.02 14:35:23 [Server] INFO     at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
    05.02 14:35:23 [Server] INFO     at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
    05.02 14:35:23 [Server] INFO     at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:78)
    05.02 14:35:23 [Server] INFO org.bukkit.plugin.InvalidPluginException
    05.02 14:35:23 [Server] INFO SEVERE: Could not load plugins\Permissions.jar in plugins: null
    05.02 14:35:23 [Server] INFO 05/02/2011 2:35:23 PM org.bukkit.plugin.SimplePluginManager loadPlugins
    05.02 14:35:23 [Server] INFO Preparing spawn area: 93%
    05.02 14:35:22 [Server] INFO Preparing spawn area: 53%
    05.02 14:35:21 [Server] INFO Preparing spawn area: 16%
    05.02 14:35:20 [Server] INFO Preparing start region
    05.02 14:35:20 [Server] INFO Preparing level "world"
    Any help would be great, can't seem to pinpoint what exactly is going on, besides Permissions not loading.
     
  11. Offline

    huntj88

    hey is there any way i can get the default group to not display "default" before their name? like setting it to null or something? so that it doesn't display anything before name?
     
  12. Offline

    zxsuperzx

    I know this is sort of dumb and all but i dont really get this.If it really not a problem can someone make a video tut please it would help alot
     
  13. Offline

    jonahrab

    when i install this plugin it works fine, i make myself admin, i have all the commands, works with plugins, but the problem is when someone joins they do not go to default automatically. I dont know if they are supposed to, but when i make then default manually they still do not have access to any command, it just says in the console [Name] doesnt have access to this command. I do not know what to do pls help??!!!
     
  14. Offline

    huntj88

    if you dont want them to go to default automatically then change the Default: true to false and the dont have commands because you didnt give them any
     
  15. Offline

    RchGrav


    You really need to take some time and read and understand how to run a server, and use plugins, such as this one. It will involve properly editing yml files for permissions, and understanding the permission node structure for each plugin you plan to secure using this.

    If you are incapable of doing that you should stick to playing on a server, not running one.

    The basic overview on how to use this plugin is in my first 2 sentences of this post.... I would suggest starting at the beginning of the thread and reading. Pay close attention to other peoples config.yml files as examples.

    This isn't something you can make a video for. All you will see is someone editing text files... Its not done in game.

    Its all in this thread.... read a little.. don't be lazy.. or the devs might decide to make it even more difficult to weed out people incapable of following the simplest of instructions. I know I would.
     
  16. Offline

    Nijikokun

  17. Offline

    RchGrav

    Do they have a translator that converts it from English to Lazy?
     
  18. Offline

    huntj88

    so... has anyone found a solution to the problem i posted about an hour ago?
     
  19. Offline

    zxsuperzx

    Nevermind gt it working
     
  20. Offline

    Andrey

    If I select the 'GroupUsers' option at 'system', can't it just simply search for the Users.txt in the main folder, and set users based of that? Because It's a lot of work to add every regular player to the config.yml. It'd be huge!
     
  21. Offline

    chill1977

    Permissions does not have a /mod command.
    --- merged: Feb 5, 2011 6:07 AM ---
    Remove the +group from your iChat configuration.
    --- merged: Feb 5, 2011 6:17 AM ---
    Code:
    plugin:
        permissions:
            system: Default
    
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'magiccarpet.mc'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'cleaner.clean'
                - 'cleaner.scan'
                - 'magiccarpet.mc'
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
                - 'cleaner.clean'
                - 'cleaner.scan'
                - 'magiccarpet.mc'
    users:
        Kurosaki:
            group: Admins
            permissions:
        Tyrade777:
            group: Admins
            permissions:
        Insitexx:
            group: Admins
            permissions:
        Xulaza:
            group: Admins
            permissions:
        Iroul:
            group: Admins
            permissions:
    These answer every question on this page that was not previously answered. If you don't think your question was answered then read this page and the one before it as well.
     
  22. Offline

    Arisilde

    Ah god... that's Essentials that lets you mod Permissions groups. No wonder was having trouble finding it lol.
     
  23. Offline

    zettairyouiki

    Would anybody be willing to troubleshoot my permissions file quickly?

    Code:
    groups:
        Default:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'essentials.list'
                - 'essentials.helpop'
                - 'essentials.whois'
                - 'essentials.spawn'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.ping'
                - 'essentials.compass'
                - 'essentials.depth'
                - 'essentials.help'
        Builder:
            default: true
            info:
                prefix: '&2Builder'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'iConomy.payment'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.msg'
                - 'lwc.protect'
                - 'essentials.list'
                - 'essentials.helpop'
                - 'essentials.whois'
                - 'essentials.spawn'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.ping'
                - 'essentials.compass'
                - 'essentials.depth'
                - 'essentials.help'
                - 'simpleshop.buy'
                - 'simpleshop.sell'
        Architect:
            default: false
            info:
                prefix: '&6Architect'
                suffix: ''
                build: true
            inheritance: Builder
            permissions: 
                -'essentials.realname'
                -'essentials.whois'
        Officer:
            default: false
            info:
                prefix: '&6Architect'
                suffix: ''
                build: true
            inheritance: Architect
            permissions: 
                - 'essentials.kick'
                - 'essentials.ban'
                - 'essentials.unban'
                - 'essentials.banip'
                - 'essentials.unbanip'
                - 'lwc.mod'
                - 'essentials.helpop.receive'
        Admins:
            default: false
            info:
                prefix: '&1Admin'
                suffix: ''
                build: true
            inheritance: Officer
            permissions: 
                - 'essentials.setspawn'
                - 'essentials.motd'
                - 'iConomy.reset'
                - '/region'
                - '/reloadwg'
                - '/stopfire'
                - '/allowfire'
                - 'essentials.essentials'
                - 'essentials.modgrp'
                - 'lwc.admin'
                - 'essentials.plugin'
                - 'simpleshop.items.remove'
                - 'simpleshop.items.reload'
                - 'simpleshop.items.add'
                - 'simpleshop.items.update'
                - 'essential.reload'
                - '/reload'
                - '/modgrp'
    
    It seems that Admins cannot use the functions builders have access to despite inheriting them through officers and architects. Do nested inheritances not work?

    Also, I have to ask about modgrp command found in essentials. Firstly, it's denying admins permission to use it. Secondly, it makes a lot of modifications to the permissions file and changes the syntax. Apparently it still works, but it's very annoying and I worry that modgrp might eventually break the very picky formatting.

    And lastly, simpleshop buy and sell isn't working for anybody. Any clues why?
    All files are up to date.
     
  24. Offline

    Zero9195

    Just wanted to thank you for not helping me. I wanted to use permissions in my new plugin, and it still doesn't work because the method getHandler( ) doesn't exist, or at least I and the programm does not find it. I wrote a post one or two pages back. Would be great if you could help me. I can give you my code if you want to check it.

    @zet:
    You don't need the '' after suffix: or prefix:. just leave it blank.
    Second, the inheritance has to look like this:

    Code:
    inheritance:
        - Builder
    
    Third, I think commands like these won't work:
    Code:
    permissions:
              - '/region'
              - '/reloadwg'
              - '/stopfire'
              - '/allowfire'
    
    But I don't know what you have to write instead.

    PLEASE HELP ME
    Zero9195
     
  25. Offline

    zettairyouiki

    Ah, good catch on the inheritance. Thanks, that's probably it. As for the strange command permissions, that's how I interpreted the worldguard documentation's instructions on how to make it work with the permissions plugin.
    http://wiki.sk89q.com/wiki/WorldGuard/Permissions/Bukkit#Permissions_permissions

    The suffix and prefix placeholders were inserted by the essentials plugin I think, but I believe should make no difference whether present or not. I suppose I'll remove them anyways in case I'm wrong.
     
  26. Offline

    timsandtoms

    I'm having some issues. It seems that the only groups that have any commands are Default and Admin, nothing in between works.
    http://pastebin.com/wqibV5DE
     
  27. Offline

    Etsijä

    Your inheritance seems to be wrong. If you inherit Default to Vip, you don't have to include them both in the inheritance for Jrmod. Vip suffices. Same for the other groups.
     
  28. Offline

    SteelWing

    You don't write it like that. You have to find the hooks. Generally if a plugin is supported by Permissions they will have a small section saying "add this to your permissions config so your users can use it". For example, big brother says to add bb.admin.* to the permissions of your admins so they'll be able to use big brother commands.

    So it will look something like this:

    permissions: [general.time, general.teleport, general.teleport.here, general.player-info, bb.admin.*, essentials.home]

    Don't be hard on them. A lot of people are asking for help and they probably do this in their spare time. Also, read through the first post again. There is a lot of useful info for how to use the plugin there and it generally does help if you give them a pastebin of your permissions config.
     
  29. Offline

    RchGrav

    Nice...

    Hope I was a little motivation... its not just you... trust me. :)

    Truthfully, everyone around here is scrambling to spend whatever time they have to either keep their systems working, or recode plugins to fit the "version of the day" of Craftbukkit.

    Many people bust their asses to recode everything on their plugin only to wake up the next day and find that something changed.

    Dumb questions will be met with force.

    You just went from zero to hero in my book. haha.

    Rich
     
  30. Offline

    JumpFusion

    Every time I try to set this up I just have This server does not have permissions correctly configured properly? I have no idea what to do can someone please send me a config file or help? This is what mine has to look like to work now?

    Code:
    plugin:
      permissions: {system: default}
    groups:
      Default:
        default: true
        inheritance: []
        permissions: [essentials.rules, essentials.home, essentials.sethome, essentials.motd,
          essentials.clearinventory, essentials.helpop, essentials.list, essentials.msg,
          essentials.help, essentials.spawn, essentials.warp, essentials.mail, essentials.getpos,
          essentials.whois, essentials.afk, essentials.sell, essentials.tpa, essentials.tpaccept,
          essentials.tpahere, essentials.tpdeny]
        info: {prefix: '', build: false, suffix: ''}
      Moderator:
        default: false
        info: {prefix: '&5[Trusted]', suffix: '&f', build: false}
        inheritance: [Default]
        permissions: [essentials.tree, essentials.tp, essentials.top, essentials.jump,
          general.thru]
      Admin:
        default: false
        info: {prefix: '&2[Admin]', suffix: '&f', build: false}
        inheritance: [Default, Moderator]
        permissions: [essentials.heal, essentials.ban, essentials.time, essentials.item,
          essentials.give, essentials.bigtree, essentials.unban, essentials.tphere, /god]
      SuperAdmin:
        default: false
        info: {prefix: '&6[Super Admin]', suffix: '&f', build: false}
        inheritance: [Default, Moderator, Admin]
        permissions: [essentials.tptoggle, essentials.setwarp, essentials.mail.send, essentials.nick,
          essentials.setspawn, essentials.banip, essentials.unbanip, essentials.kill,
          essentials.tpohere, essentials.tpo, jail.command.jaillist, jail.command.jailteleout,
          jail.command.jailtelein, jail.command.jailcheck, jail.command.jailtransferall,
          jail.command.jailtransfer, jail.command.unjail, jail.command.jail, jail.command.jaildelete,
          jail.command.jailcreate, /slay]
      Owner:
        default: false
        info: {prefix: '&4[Owner]&4', suffix: '&f', build: false}
        inheritance: Normal,Moderators,
        permissions: ['*']
    users:
      sutton2k9:
        group: Owner
        permissions: []
      jumpfusion:
        group: owner
        permissions: []
      thechickenman100:
        permissions: []
        group: admin
      Dirtbike04:
        permissions: []
        group: Admin
      ripcord1:
        permissions: []
        group: admin
      l13r:
        permissions: []
        group: superadmin
      jddjr:
        permissions: []
        group: moderator
      evilacid123:
        permissions: []
        group: moderator
      major77:
        permissions: []
        group: moderator
      L13a:
        permissions: []
        group: Superadmin
      jjseager:
        permissions: []
        group: admin
      shmowzow123:
        permissions: []
        group: moderator
    
     
  31. Offline

    Don Redhorse

    well the worldguard documentation states it that way. that it is not using the normal syntax. using for example - '/god' allows to use the /god command.
     
Thread Status:
Not open for further replies.

Share This Page