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

    waffulz

    I'm using the "Essentials" plugin, and I'm having an issue where any player that connects to the server can use commands such as: /ban, /time, /give, ect. What am I doing wrong?

    http://pastebin.com/2n8GZVaR (Permissions Config)
    http://pastebin.com/a11AiLi7 (Essentials Config)

    Any help is much appreciated. :)

    EDIT: I think this latest update might have fixed it, however now the groups aren't working for me. I have myself under the "Admins" group, but I do not have the permissions in-game. Maybe an error in my config file.
     
  3. Offline

    HotelErotica

    @waffulz You cannot have breaks in your lines heres an example.

    Code:
        Guest:
            default: true
            info:
                prefix: '&b'
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
    DONT PUT GAPS HERE IT'LL BREAK YOUR SHIT
        Regular:
            default: false
            info:
                prefix: '&9'
                suffix:
                build: true
            inheritance:
                - Guest
            permissions:
                - 'general.time'
                - 'general.player-info'
                - 'lwc.protect'
    You cant put gaps anywhere in the group or user section
     
  4. Offline

    waffulz

    Thanks for the help, however I have fixed the gaps and I still do not have the proper permissions.

    http://pastebin.com/N2Fg8X9Z (Updated config)
     
  5. Offline

    SeeD419

    The plugins I want will only work with this....but honestly just looking at the config for a single second just makes me really not want to deal with it...
     
  6. Offline

    HotelErotica

    @waffulz http://pastebin.com/tmAgGrb6 that one should work, also adding permissions to the admin group is redundant since it has '*' permissions to everything
    --- merged: Jan 26, 2011 1:58 AM ---
    Its not all that hard to understand you just have to obey by the rules and it'll work.
     
  7. Offline

    ctshiner

    I can't get this working for the life of me. First question: where am I supposed to put the Permission folder in the download? Inside the plugins folder? I get a huge error when launching the server if I do that. If I put it in the root craftbukkit folder the server will launch and then create its own Permissions folder inside the plugins folder. This new folder is empty. If I attempt to copy my config.yml into I get that same error again.
    Question 2: Plugin will load if I put Permissions folder in craftbukkit root, but then it doesn't seem to work. I set admins group as default but any command i try just says something about falling on deaf ears.
    I believe I'm using build 141 of CraftBukkit

    Here's error:
    Code:
    Jan 25, 2011 9:03:43 PM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:83)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:43)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            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 Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:81)
            ... 8 more
    Caused by: while parsing a block mapping
     in "<reader>", line 36, column 5:
            Default:
            ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 47, column 9:
                info:
                ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:576)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:62)
            at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:46)
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    76)
            ... 13 more
     
  8. Offline

    waffulz

    Thanks a ton! It worked!

    May I ask what you did to fix the issue?
     
  9. Offline

    HotelErotica

    @waffulz

    You had this
    Code:
        waffulz112:
            group: Admins
            permissions:
    when it was supposed to be like this
    Code:
    users:
        waffulz112:
            group: Admins
            permissions:
    Without the "users:" it wont even try to add them to the userlist
    --- merged: Jan 26, 2011 2:09 AM ---
    @ctshiner everything in the zip should be placed in the plugins folder, your problem is most likely your config file for permissions put it up on pastebin.com and i'll try to help you out.
     
  10. Offline

    waffulz

    Oh wow, seems like a noob mistake on my end, lol. Thanks again. :)

    I recommended you, not quite sure if it does anything, but it's the closest thing to +rep I can find on this site.
     
  11. Offline

    undefinedarray

    hello, just installed this and made a few changes to my MOD group, but is there a way to change the color whenever the moderator talks on chat? so people can respect them

    -thanks
     
  12. Offline

    Cmurphy

    Code:
    Caused by: while parsing a block mapping
    in "<reader>", line 36, column 5:
            Default:
            ^
    expected <block end>, but found BlockMappingStart
    in "<reader>", line 47, column 9:
                info:
                ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:576)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:62)
            at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:46)
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    76)
            ... 13 more
    Hey I changed the the whole tab deal in n++ and still keep getting errors?
    like these ones:
     
  13. Offline

    ctshiner

    HotelErotica,
    Got it working. Apparently you have to put the folder straight from the zip into plugins. I put it in the wrong place first and then moved it, which is a no-no for some weird reason. Thanks!
     
  14. Offline

    HotelErotica

    @Cmurphy post your config in pastebin and i'll give it a look.
    --- merged: Jan 26, 2011 3:40 AM ---
    Also i made a quick video, http://www.youtube.com/watch?v=Agg6lD8pv1U to explain the config file for anyone to lazy to read youtube fudged up the readability of the text abit but you can still read it.
     
  15. Offline

    craftersins

    Your plugin is really awesome.
    I am working on a very simple promoter (Builder adder) plugin.
    My only problem is, how can I call /pr inside my plugin? I tried to send it to the server in some way, but I did not find
    a suitable function or class. My plugin is working fine, calling /pr manually is my only problem atm.
    Can I use any method inside the Permissions class or maybe send the /pr command to the server?
    I really don't won't to do crazy memory things just to reload the permissions.

    Thanks in advance.
     
  16. Offline

    Dreggor

    Hey Nijiko, I am getting the following error when doing a /pr. I am using the latest CraftBukkit and Permissions.

    Code:
    Jan 25, 2011 10:42:17 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getInheritancePermissions(Control.java:321)
            at com.nijiko.permissions.Control.permission(Control.java:190)
            at com.nijikokun.bukkit.Permissions.Permissions$Listener.onPlayerCommand(Permissions.java:165)
            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)
    
     
  17. Offline

    Euthyphro

    This mod seriously seriously needs mysql support, manually typing it into a file is not a very good way of going about setting permissions.
     
  18. Offline

    mavrck48

  19. Offline

    Jobsti

  20. Offline

    mavrck48

    Thanks Jobsti for the quick response! I'll give it a shot.
     
  21. Offline

    LightKing

    Hi, I just moved to craftbukkit from using Km0d and this is all very new to me. Permissions works fine when I load it WITHOUT any other plugins, but when I add a plugin, It gives me the same error CMurphy has (Scroll above).
    Anyone know the solution to this?

    Also, How come when im configuring the Permission's Config File with Notepad ++ , when I add a new command
    ( - 'general.spawn') It becomes red. Is red supposed to be normal for Notepad ++?
     
  22. Offline

    Dysalot

    Okay, I have tried the YAML parser, and this is the error I get, not sure how to fix it:
    Code:
    ERROR:
    
    while scanning a simple key
      in "<unicode string>", line 97, column 5:
            mattthebrat
            ^
    could not found expected ':'
      in "<unicode string>", line 98, column 14:
                group: Griefer
                     ^
    Hers is the config text:

    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:
        Griefer:
            default: false
            info:
                prefix: [NOBLD]
                suffix:
                build: false
            inheritance:
            permissions:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'iConomy.payment'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.top'
        Moderator:
            default: false
            info:
                prefix: Mod
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        Dysalot:
            group: Admins
            permissions:
                - '*'
        Forealms:
            group: Admins
            permissions:
                - '*'
        papbear:
            group: Moderator
            permissions:
                - '*'
        mattthebrat
            group: Griefer
            permissions:
                - 'general.spawn'
        julientamas
            group: Griefer
            permissions:
                - 'general.spawn'
    For the life of me I can't figure out what is wrong.
     
  23. Offline

    HotelErotica

    @Dysalot you forgot the : after the usersnames

    Code:
        mattthebrat
            group: Griefer
            permissions:
                - 'general.spawn'
        julientamas
            group: Griefer
            permissions:
                - 'general.spawn'
    --- merged: Jan 26, 2011 5:47 AM ---
    Also
    Code:
        Forealms:
            group: Admins
            permissions:
                - '*'
    
    Giving them the '*' permission is redundant since they already draw those permissions from the admin group
     
  24. Offline

    Euthyphro

    Thanks, I was going to write one myself. I find it really odd that no one has created a mysql user/group plugin yet rather than using text files. Seems like a step backward :\. I bet a lot of ppl would donate to a mysql plugin for users and groups rather than txt files, myself included.
     
  25. Offline

    Dysalot

    Thank you. I knew I was being redundant, but I thought I may as well put something there to see if that is wrong., I will try it out and report back in this post.

    EDIT: That was the problem, maybe I am not meant for coding. But I remember coding a couple Flash games and occasionally had the same issue. Sitting there for hours looking at what I was doing wrong, then I would sleep on it usually and it would be an "Oh god, how dumb am I?" scenario.
     
  26. Offline

    Daniels3RE

    hopefully i'm not repeating a question already asked.
    i'm trying to use the Permissions plugin with the Essentials plugin.
    i can't get ANY of the general permissions to work.
    Example
    - 'general.time'
    - 'general.teleport'
    - 'general.teleport.here'
    - 'general.player-info'

    the only way i can get the permissions to work is to do
    - '*'
    then all of them work.
    using the default config file that is created when you first install the permissions plugin
    it already has to people under the users. (Examples i'm guessing)
    DarkGrave is in the admin group and sk89q is in the default group, with default permissions. which is just general.spawn, but is also given an additional command general.time
    it says darkgrave has control over all commands
    and sk89q can use /spawn and /time

    if i replace darkgrave's name with my own and log in, everything works, it makes available all commands as it should
    but if i replace my name with sk89q's name, i should be given the /spawn and /time command correct?
    it doesn't, i can't get anything to work outside of using - '*' to be given all command permissions
     
  27. Offline

    ledhead900

    "Generals Plug-in" and "Essentials Plug-in" are twp seperate Plug-ins they don't share the same commands.

    Simpler: Your using General commands with Essential, those commands do not exisit.You should be using it like this.

    - 'essentials.tp'
    - 'essentials.tphere'
    - 'essentials.list'
    - 'essentials.time'

    Note: I suggest you check the Essentials plugin wiki page Here, That is if you are using Zenexers Essentials plugin and not the Essentials that just added Kits to General.
     
  28. Offline

    Daniels3RE

    still new to all this server stuff
    thanks for the help ledhead900
    that was the problem
     
  29. Offline

    ledhead900

    Np [​IMG] we all gotta learn new things.
     
  30. Offline

    Deesr

    I changed "Build = True" to "Build = False" but the Players in this group still can build blocks etc.... I allreaday reinstalled the Plugin. Please help me =(
     
  31. Offline

    TehSeph

     
Thread Status:
Not open for further replies.

Share This Page