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

    cjc343

    @DevonX using 2.0 right? Throw this at the top. I don't remember if it's required, but it's in mine, and mine's working.

    I don't see any tabs...

    Code:
    plugin:
        permissions:
            system: default
    
     
  3. Offline

    DevonX

    No im using 2.1 :\ i just removed some of the help text at the top <_<
     
  4. Offline

    cjc343

    Most plugins aren't updated for 2.1 yet, and 2.0 still works. There's another line that goes at the top for 2.1, it's in the example file. Some say they've gotten it working, but I'm happy with 2.0 for now.
     
  5. Offline

    Qtinifier

    I've already set all things correctly
     
  6. Offline

    Acru

    I was just trying to update my plugins for 2.1 myself but...

    The code showing how to hook to Permissions 2.1 ( http://pastie.org/private/x8ck65e1rbu4adx6ts1ofg ) is bad.

    onPluginEnabled is called just before Permissions is enabled, and at that point Permissions.Security is null.

    (Not to mention the fact that if your plugin is loaded after permissions plugin, (and register for it in your own onEnable) you won't get the event at all, but in that case you can connect to Permissions the old way, perhaps.)
     
  7. Offline

    cjc343

    I hadn't narrowed it down that far, all I knew is that I was never getting anything but null. Fixed the NPE, but gives permission full on in 2.1
     
  8. Offline

    lostaris

    Both the old and new way of connecting to permissions for your plugin result in Permissions.Security is null.

    Some parting gift he left us.
     
  9. Offline

    Unlucky4ever

    I'm having trouble with this, I want to make it so the default group can't build, and I got that part working, but now nobody can build, only me...

    Here is my config

    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: false
            inheritance:
            permissions:
                - 'general.spawn'
        Trust:
            default: false
            info:
                prefix:
                suffix: '&a'
                build: true
            inheritance: Default
            permissions:
                - 'general.spawn'
                - 'general.player-info'
        Mod:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Trust
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Admin:
            default: false
            info:
                prefix: '&4[Admin]'
                suffix: '&4'
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    
    ##
    # Unlucky4ever has control over all commands.
    ##
    users:
        Unlucky4ever:
            group: Admin
            permissions:
        Unlucky4ever2:
            group: Trust
            permissions:
     
  10. Offline

    Thomas Carlsen

    Just did a rollback to 2.0... i cant get permission to work whit version 2.1
    iChat give me this error on a chat
    Code:
    2011-02-24 11:15:45 [SEVERE] Could not pass event PLAYER_CHAT to iChat
    java.lang.NullPointerException
        at com.nijiko.permissions.Control.getGroupPrefix(Control.java:532)
        at com.nijiko.permissions.Control.getGroupPrefix(Control.java:1056)
        at com.nijikokun.bukkit.iChat.Listener.onPlayerChat(Listener.java:39)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:160)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:602)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:590)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  11. Offline

    Acru

    My fix:

    Took the code from http://wiki.nexua.org/Permissions/API/Usage
    And added a line;
    Code:
    private void setupPermissions() {
            Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
    
            if (this.Permissions == null) {
                if (test != null) {
                    this.getServer().getPluginManager().enablePlugin(test); // This line.
                    this.Permissions = ((Permissions)test).getHandler();
                } else {
                    log.info("Permission system not detected, defaulting to OP");
                }
            }
        }
    
    Link successful. (enablePlugin checks if the plugin is already enabled, so no worries there.)
    (Edit, oop, moved the line to the right spot.)

    ..... :3
     
    wabsta and cjc343 like this.
  12. Offline

    cjc343

    I just checked TimeShift -- permissions 2.0 is working fine. B432.

    What's not working for you?


    build: Build Key - Does nothing inside Permissions, acts as information holder for plugins such as Anti-Build.

    You need another plugin to change who can build.
    --- merged: Feb 24, 2011 10:49 AM ---
    Hadn't heard about anyone successfully using iChat.
     
  13. Offline

    Unlucky4ever

    I have Anti-build installed, it still won't work...
     
  14. Offline

    lostaris

    I was referring to permissions 2.1, but Acru has found a fix.
     
  15. Offline

    cjc343

    Sweet -- I assume that means it works for 2.0 and 2.1? Good thing I saved some separate 2.1 config files... although I'll still be on 2.0 for everything except testing until more people hear the news, but I'm going to get on releasing 2.1 support.
     
  16. Offline

    lostaris

    Thanks for this, it was driving me bonkers trying to get 2.1 working with my plugin.
     
  17. Offline

    cjc343

    Don't inherit default. You haven't defined Moderator.
     
  18. Offline

    Unlucky4ever

    I haven't inherited default now, and defined Mod, yet it still does it, even when I make the other user the same group as me?
     
  19. Offline

    cjc343

    Post your new file
     
  20. Offline

    iNzzane

    Can anyone get permissions to work after the update?
    And does any of the other plugins by the fantastic Nijikokun work?
    My permissions, simpleshop and iMonster stopped working. :(
     
  21. Offline

    ShadowDrakken

    Group Manager 0.9e can emulate Permissions 2.0... it's not quite as friendly or focused, but it can do a lot more.
    Cookies has function similar to iMonster, but not on a per-monster basis.
    Tons of different shop plugins to choose from, don't have any specific one I recommend though.
     
  22. Offline

    Unlucky4ever

    Here is my new one

    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: false
            inheritance:
            permissions:
                - 'general.spawn'
        Trust:
            default: false
            info:
                prefix:
                suffix: '&a'
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'general.player-info'
        Mod:
            default: false
            info:
                prefix: '&6[Moderator]'
                suffix: '&6'
                build: true
            inheritance:
                - Trust
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Admin:
            default: false
            info:
                prefix: '&4[Admin]'
                suffix: '&4'
                build: true
            inheritance:
                - Mod
            permissions:
                - '*'
        Owner:
            default: false
            info:
                prefix: '&3[Owner]'
                suffix: '&3'
                build: true
            inheritance:
                - Admin
            permissions:
                - '*'
    
    ##
    # Unlucky4ever has control over all commands.
    ##
    users:
        Unlucky4ever:
            group: Owner
            permissions:
        Unlucky4ever2:
            group: Trust
            permissions:
     
  23. Offline

    Acru

    Yer welcome. :3
    --- merged: Feb 24, 2011 11:39 AM ---
    Yes, tested out a bunch of combination, all seemed to work, except 2.1 needs build 45jnks minimum, due to what we talked about that other thread. I did have to use the alternate 'inGroup' method if detected 2.1, though, the depreciated one doesn't work at all.
     
  24. Offline

    cjc343

    Try this. If it doesn't work, what build are you using, and to what extent have you tested? Are you sure you're not a non-op too close to spawn?

    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: false
            inheritance:
            permissions:
                - 'general.spawn'
        Trust:
            default: false
            info:
                prefix:
                suffix: '&a'
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'general.player-info'
        Mod:
            default: false
            info:
                prefix: '&6[Moderator]'
                suffix: '&6'
                build: true
            inheritance:
                - Trust
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
        Admin:
            default: false
            info:
                prefix: '&4[Admin]'
                suffix: '&4'
                build: true
            inheritance:
            permissions:
                - '*'
        Owner:
            default: false
            info:
                prefix: '&3[Owner]'
                suffix: '&3'
                build: true
            inheritance:
            permissions:
                - '*'
    
    ##
    # Unlucky4ever has control over all commands.
    ##
    users:
        Unlucky4ever:
            group: Owner
            permissions:
        Unlucky4ever2:
            group: Trust
            permissions:
     
  25. Offline

    iNzzane

    Can anyone tell me if Permissions does work after the 1,3 update? Or is it only me :)?
     
  26. Offline

    Etsijä

    2.0 works just fine on 1.3. People seem to be having loads of trouble with 2.1 though.
     
  27. Offline

    cjc343

    I have had 2.0 working. I have had 2.1 possibly working but been unable to test it at the time. Others have reported getting 2.1 working.

    E: 2.1 requires changes to plugins in order to work with it. E3: Plugin Authors: http://forums.bukkit.org/posts/79813/

    E2:
    No problem.
     
  28. Offline

    Unlucky4ever

    It worked, thanks :)
     
  29. Offline

    weirdbeard

    @Nijikokun Can you include the CraftBukkit build number with which this release is compatible in the thread title?

    Thanks!
    -WB
     
  30. Offline

    manniL

    did it work with Mysql?
     
  31. Offline

    DierWolf

    The guy quit... good luck.
     
Thread Status:
Not open for further replies.

Share This Page