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. i downloaded the lastest plugin from this thread just before i made the post, and the config i let it auto generate (which it didn't for some odd reason) so i took the config from the ZIP archive and placed it into the permissions folder, changed the permissions to my liking.... that's it, didn't do anything special
     
  3. Offline

    Mugendai

    When I upgraded to Bukkit 400+ from 348, I ran into quite a few problems. This included Permissions, which now spits out an error when I try to load it, and I have to load it manually in-game.

    This is the error:
    Code:
    java.lang.Exception: Your Permissions config file is invalid.  See console for details.
        at org.anjocaido.groupmanager.DataHolder.load(DataHolder.java:332)
        at org.anjocaido.groupmanager.GroupManager.initialize(GroupManager.java:94)
        at org.anjocaido.groupmanager.GroupManager.onEnable(GroupManager.java:135)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:74)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:179)
        at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:166)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:118)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:217)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
    2011-02-21 14:03:56 [SEVERE] Feb 21, 2011 2:03:56 PM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: Permissions file is in wrong format (Is it up to date?)
    java.lang.IllegalArgumentException: Permissions file is in wrong format
        at org.anjocaido.groupmanager.GroupManager.initialize(GroupManager.java:100)
        at org.anjocaido.groupmanager.GroupManager.onEnable(GroupManager.java:135)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:74)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:179)
        at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:166)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:118)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:217)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    I checked my configuration file to see if anything was wrong, including checking for tabs (I edit the file in nano), but nothing seemed off. Here it is anyway: http://pastebin.com/v7ZJhCdB

    Also, once when I reloaded the permissions after the update, it seemed to stop working and nobody could use any commands.

    The plugins I use are: all of the latest version of Essentials except for EssentialsBan, DeathChest, Elevators, WorldEdit, WorldGuard, MultiVerse, MinecartMania, and MinecartManiaAutocart.

    Edit: I tried the example permissions file in the first post, and it resulted in the same error.

    Edit 2: Apparently it's not an issue with Permissions itself, but rather an issue of either EssentialsGroupManager.jar or EssentialsGroupBridge.jar, which I removed. Now all the other plugins are working correctly.
     
  4. i was wondering how i can use magic carpet to permissions. every time i try everyone can use it. even if i only put the command on admin and moderator the guest still can use it.plzz help me someone
     
  5. Offline

    Jath

    Having a bit of an issue. Know of it?
    [​IMG]
     
  6. Offline

    arthoz

    You have a tab in your config. hence the '\t' error
     
  7. Offline

    Crimsonshot

    How do you set permissions to the /pr command for groups other than those with '*'?
     
  8. Offline

    Nlioc4

    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:
                - 'jail.usercmd.jailstatus'
        Moderator: Ryannui
            default:false
            info:Moderator
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'jail.usercmd.jailstatus'
                - 'warpz0r.warp'
                - 'warpz0r.list'
                - 'warpz0r.home'
                - 'warpz0r.sethome'
                - 'lwc.protect'
        Admins: Nlioc4, Mwhais
            default: false
            info:Admin
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        darkgrave:
            group: Admins
            permissions:
        sk89q:
            group: Default
            permissions:
                - 'general.time'
    What is wrong with this?
    I keep getting [Severe] errors. Something about the code not being right so I thought it would be a good idea to post it up here.

    Any help would be much appreciated!![​IMG]
     
  9. Offline

    Cool12309

    After searching through my now 11 KB per session server.log, I find only actual errors with this and 1 other plugin. Error:

    Code:
    2011-02-21 23:17:15 [SEVERE] Could not load plugins\WorldGuard.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:85)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:178)
        at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:165)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:117)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:217)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:77)
        ... 8 more
    Caused by: java.lang.NoSuchFieldError: ENTITY_DAMAGEDBY_PROJECTILE
        at com.sk89q.worldguard.bukkit.WorldGuardPlugin.registerEvents(WorldGuardPlugin.java:190)
        at com.sk89q.worldguard.bukkit.WorldGuardPlugin.<init>(WorldGuardPlugin.java:160)
        ... 13 more
     
  10. Offline

    M1sT3rM4n

    After CB 406 all plugin authors are required to switch and remove this section of code, according to the Java output lol
     
  11. Offline

    Nijikokun

    Who is ready for 2.1?


    I know I am. (Writing documentation for users & plugin authors)
     
    Hiramas, HaloInverse and M1sT3rM4n like this.
  12. Offline

    M1sT3rM4n

    So you updated your first post?
     
  13. Offline

    Nijikokun

    Read what I said, I'm writing documentation. You'll know when it's released. It's going to send earthquakes.
     
  14. Offline

    M1sT3rM4n

    Oh haha I thought you meant that that you've already released it and are now writing the documentation :)
     
  15. Offline

    studog

    Crimesonshot The permission you are looking for is - 'permissions.reload' should look something like below.

    Moderator:
    default:false
    info:Moderator
    prefix:
    suffix:
    build: true
    inheritance:
    - Default
    permissions:
    - 'permissions.reload'
     
  16. Offline

    SSCradle

    Well finally after 2 weeks of messing around on what ever spare time i have.. I sort of got this working. I can't /setspawn or/spawn and when i do /give someguy 1 64 they spit the items out instead of it going to thier inventory, also player1 and player2's commands dont work. I am running Bukkit Dev Build b-53 and I am using plugins: Permissions, General, Minecart Maina Core, and Treehugger.
    Here is my .yml 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: (def), suffix: '', build: false}
            inheritance: []
            permissions: [general.spawn]
        Vip:
            default: true
            info: {prefix: (def), suffix: '', build: true}
            inheritance: [Default]
            permissions: []
        Moderator:
            default: false
            info: {prefix: '', suffix: '', build: true}
            inheritance:[Vip]
            permissions: [general.time, general.teleport, general.teleport.here, general.player-info, general.items]
        Admins:
            default: false
            info: {prefix: '', suffix: '', build: true}
            inheritance: [Moderator]
            permissions: [general.spawn.set]
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        SSCradle:
            group: Admins
            permissions: []
        LilyPuppet:
            group: [Moderator]
            permissions: []
        Person1:
            group: [Moderator]
            permissions: []
        Person2:
            group: [Vip]
            permissions: []
    If anyone could spot out the problem Id be a very happy man. Thanks in advance for any help or guidence given.
    SSCradle
     
  17. @SSCradle: the items being spit out is just how bukkit handles giving items, other plugins for giving items seem to have found a different way of doing it. You can see what i mean by just issuing the normal server command in the console: "give someone 1 64" and it will pop out from them. as for the /spawn and /setspawn, i think that belongs with the plugin supplying you with that functionality, General as far as i can see, I sadly have no idea what is causing that, as I use SpawnControl.
     
  18. Offline

    Mircast

    /item or /i - returns to it to your inventory
    /give <playername> <amount> - throws the item in front of said user
     
  19. Offline

    nitrogen

    Tried to update bukkit, killed Permissions. Anyone know the latest version of bukkit that Permissions works with?
     
  20. Offline

    aPunch

    I'm running it on 345. I think anything up to 348 works, but I'm not certain.
     
  21. Happy to hear about it :)
     
  22. Offline

    nitrogen

    Thank you so much! The members of my server thank you. :D
     
  23. Offline

    Vuviboy

    Do you know the website or place where you downloaded 345, or 348?
     
  24. Offline

    Jandalf

  25. Offline

    RustyDagger

    Cant wait for the update niji If theres 2 things you do well its permissions and iconomy the rest is cosmetic :p

    as long as 2.1 dont brake all the plugins that work with it it will be good if it brakes stuff o shit moment :(
     
  26. Offline

    JB_

    Can someone help me out? I am using the Mod Essentials and When the default group tries to enter a command that is defined it keeps saying you dont have access to that command ex. /spawn
    http://pastie.org/1593749p
    http://pastie.org/1593781

    Any ideas??
     

  27. Code:
    Caused by: while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 46, column 1:
                - 'essentials.afk'
        ^

    The '\t' means you have used a tab character in your file. You can't use tabs, only spaces. So you need to find the tabs and get rid of them :)

    And again at
    Code:
    Caused by: while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 67, column 1:
               - 'essentials.kit.tools'
        ^
     
  28. Offline

    Göran

    Can somebody please link to a build of craftbukkit that currently works with permissions? I only find builds who doesn't.. (400+ builds...)
     
  29. Offline

    bliseer

    400+ builds don't work it. please fix it.
     
  30. Offline

    bugonstick

    He has already posted several times that he is working on it. Be patient it will be done when its done.
     
  31. Offline

    RaaF

    When i run the server this do to my this problem:
    2011-02-22 18:20:52 [WARNING] Using the stupidly long constructor com.nijikokun.
    bukkit.Permissions.Permissions(PluginLoader, Server, PluginDescriptionFile, File
    , File, ClassLoader) is no longer recommended. Go nag the plugin author of Permi
    ssions to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-22 18:20:52 [WARNING] Plugin 'Permissions' (ver 1.0) is registering even
    ts before it is enabled. It may be misbehaving and the author needs to fix this.

    2011-02-22 18:20:52 [INFO] [Permissions] version [2.0] (Handler) loaded
    2011-02-22 18:20:52 [INFO] Done! For help, type "help" or "?"

    What i need to do?!
     
Thread Status:
Not open for further replies.

Share This Page