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

    riuthamus

    1) Added your code, permissions stopped working and gave error upon server load
    2) Removed your code, permissions working and no error upon server load
    3) Added prefix: 'test' suffix: 'ihateyou' and nothing changed with /pr
    --- merged: Jan 22, 2011 8:11 AM ---
    can we get a /modify command for in game permission adding?

    Okay, added ichat and then the colors and crap worked.... is that designed on purpose?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  3. Offline

    Iamdone

    Can anyone upload the iChat.jar i got an 5xx Error.. :/
     
  4. Yes, you need iChat to be able to display tags and colors.
    The iChat plugin makes the rank name as a tag in front of the user's name (so if you are a Moderator, you will appear as [Moderator]Yourname).
    To make only the rank a color, put '§x' in the prefix (with the single quotes, replace the x with your desired color).
    I haven't found a way to make all the name colored yet, and from what i've noticed, the suffix doesn't do anything. correct me if i'm wrong.

    @Iamdone - attached iChat.
    Nijikokun - please tell me if you want me to remove it.
     
  5. Offline

    mansl

    Is there any command u can make pepole in-game, like admins; /permission mansl admin or so?
     
  6. Offline

    riuthamus

    thats what i asked for as a dev update. We need to modify peeps in game, this out of game crap is going to get old quick! :p I have 100+ users... that will TAKE YEARS!!
     
  7. No, but you can edit the config.yml file, assign that person to a group then type /pr in-game to reload the permissions file
    --- merged: Jan 22, 2011 9:29 AM ---
    Tell me about it. I spent a few good hours converting only my mod/donating groups :)
    Can't even think how long it's going to take converting the vip list (which is huge).
    I just hope that when CraftBukkit comes with its own permission system, we will be able to copy-paste from here :D
     
  8. Offline

    Hoddie54

    Right, Im getting an error and I'll try to make the following as useful as possible.
    CraftBukkit build: 126
    Java Error:
    Code:
    SEVERE: Could not load plugins/Permissions.jar in plugins: null[/B]
    [B]
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java: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(NativeConstructorAccessorImpl.java:57)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:81)
            ... 8 more
    Caused by: while parsing a block mapping
     in "<reader>", line 2, column 1:
        plugin:
        ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 76, column 5:
            sk89q:
            ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.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.composeDocument(Composer.java:122)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.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:77)
            ... 13 more
    
    Properties File:
    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system:
    ##
    # 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.spawn'
        Moderator:
            default: false
            info:
                prefix: Mod
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.time'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.give'
        Admins:
            default: false
            info:
                prefix: Admin
                suffix: The-Great
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
         Hodde54:
            group: Admins
            permissions:
        sk89q:
            group: Default
            permissions:
                - 'essentials.time'
    [/CODE][/B]
     
  9. Offline

    IncendiaDrakon

    Information for iChat should be included in OP. I've actually done some searching around several threads and even some cross referencing back to the hMod forums just to figure out what this is. :I
     
  10. Yep, it would be good to include it in the first post, or even include it in the permissions plugin alltogether
    It only adds [Tags] in front of the user's names (the tag text = the rank of the user).
    I haven't found any commands/options other than that.
     
  11. Offline

    Jobsti

    @Hoddie54
    Where's the Problem? read the errorlog and use http://yaml-online-parser.appspot.com/

    1.
    PHP:
    plugin:
        
    permissions:
            
    system:
    ->
    PHP:
    plugin:
        
    permissions:
            
    system:Default
    2.
    PHP:
    users:
         
    Hodde54:
            
    groupAdmins
            permissions
    :
        
    sk89q:
            
    group: Default
            
    permissions:
                - 
    'essentials.time'
    -> one [space] more in front of "sk89q"
    ->
    PHP:
    users:
         
    Hodde54:
            
    groupAdmins
            permissions
    :
         
    sk89q:
            
    group: Default
            
    permissions:
                - 
    'essentials.time'
    Some Infos should be in the first Post. Big fat ;)
    Use: http://yaml-online-parser.appspot.com/ to check and correct your configs!
    If this page says error, you have to find the error by yourself!
    First, try to test the plugin with default settings/configs. Error-> Restart Server. Error -> look in the Forum, redownload and try again.
    If you have to edit the cfg that the plugin will start/cause no errors, then do this first, but with minimal settings.
    .....

    If you want to post your Error, post your Permissions Config, PluginConfig and Errorlog via Pastebin
     
  12. Offline

    IncendiaDrakon

    Well, I got some parts figured out. I'm not sure how to set a per-user prefix and suffix, if that's even possible. I got Group prefix and suffix to work.
     
  13. Offline

    mansl

    I know u can edit the yml file, but as riut said, it would take a lot of time just copy pasteing in the pepole on the server.
     
  14. Offline

    riuthamus

    god forbit i have to make a inline change, i have new people join my server every day and the default group is set to NOT BUILD, so then 20 people say.. hey i need to build, i say.. wait 20 min while i set you all up. Go into server, type their names out... all of this could be done from within the game with a /modify command.
     
  15. Offline

    Jobsti

    Jop, we have to wait for this option.... I want this too. modify, adduser or something.
    I'm still waiting and making coffee ;)
     
  16. Offline

    IncendiaDrakon

    According to how the .yml is setup to display what appears to be all possible settings, I'll assume there's no per-user prefix/suffix. On a per-user basis, we can only choose what group and specific permissions/commands they can have?

    If possible, I'd like to request per-user prefixes and custom group prefixes and suffixes. It appears if you attempt to change "Admins" to make the in game tag change, it causes the plugins to crash.

    Also, one more think. Isn't it redundant having Admins inherit permissions from Moderator if Admins permissions is all ready set to '*'?
     
  17. Offline

    Jobsti

    For me, the first important feature is, that Default users can't build, the build permission.
    prefixes and colors are bits and pieces
     
  18. Offline

    IncendiaDrakon

    We probably need a way to set our own groups, rather than predetermined groups. That, or just add a fourth group.

    Unrelated, the Healthy plugin overrides iChat functions with Permissions. If I have Healthy enabled, it displays only healthbars and prevents iChat tags from displaying. Just thought I'd throw that out there.
     
  19. I try to add myself in the group admins but it doesnt work.

    groups:
    Default:
    default: true
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    permissions:
    - 'general.spawn'
    Mods:
    default: false
    info:
    prefix: 8[Mod]
    suffix:
    build: true
    inheritance:
    - Default
    permissions:
    - 'general.time'
    - 'general.teleport.here'
    - 'general.player-info'
    Admins:
    default: false
    info:
    prefix: 9[Admin]
    suffix:
    build: true
    inheritance:
    - Moderator
    permissions:
    - '*'

    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
    justchilling:
    group: Admins
    permissions:
     
  20. Offline

    Jobsti

    Use: http://yaml-online-parser.appspot.com/ to check and correct your configs!
    If this page says error, you have to find the error by yourself!
    First, try to test the plugin with default settings/configs. Error-> Restart Server. Error -> look in the Forum, redownload and try again.
    If you have to edit the cfg that the plugin will start/cause no errors, then do this first, but with minimal settings.
    .....

    If you want to post your Error, post your Permissions Config, PluginConfig and Errorlog via Pastebin
     
  21. Offline

    GmK

    Worked fine with GroupUsers as system, now I converted it all to use Default, but it doesnt start up anymore:

    Config: http://pastebin.com/KjZBbDCw

    Gives this error:
    Jan 22, 2011 12:04:14 PM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: java.lang.Long cannot be cast to java.lang.String (Is it up to date?)
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

    Doesnt give it with default config.yml or Permissions plugin disabled

    Any idea what might be off?
     
  22. Offline

    Survivorman

    Like everyone else, I'd kill for a /modify or /adduser command before I make Bukkit live on my server.
    Also a way to just color names. Right now to my understanding the prefix setting only does, well, prefixes.
    At the moment I can set it up like "[Admin] Survivorman" and honestly I think it looks tacky over the usual "<Survivorman>:".
     
  23. Offline

    8e8

    I have updated my plugin (will be posting soon, after more testing) to support this.
    Few things:
    1. When I switch from Default to GroupUsers, it doesn't work. The reason for this is because I'm using onCommand, which cuts out the '/' needed for GroupUsers. Your plugin assumes we're using onPlayerCommand, and doesn't account for the missing '/'.
    2. When I try to define all access for a user (godmode.*, or godmode.god.*) it doesn't work. It will work if I put the whole command though (godmode.god.self).

    I'm still doing some testing so I might update my post if I find something I did wrong, or another error.

    Also, as others have said, a /modify command would be good, or at least a command to reload the permissions file. The default auth method used in my plugin scans the users each time the command is used. Although that may not be good for performance, depending on the size of that user list, it ensures that changes to permissions get carried through. Just noticed the /pr command.
     
  24. Offline

    GmK

    I removed
    Code:
    157359951735:
            group: Controllers
            permissions:        
    and it works now. Niji, please enable somehow to be able to have usernames made only of numbers ;)
     
  25. Offline

    Rallerbabz

    I've fixed MCBans now, but It still says that I have no permission to /i :S - Could you check my Permission-file for errors?
    or just click here :p
     
  26. Offline

    xZise

    Hello,
    I have one question: Is it possible to exchange the Permission plugin? So if no plugin is installed, that I easily can create a simpler one? Because, when I'm reading your tutorial I sounds so, that I always access to the plugin.

    My suggestion would be to create a Interface which your plugin returns, and if it isn't installed, that I can create a easy class, to support minimalistic features.

    Sincerely
    xZise
     
  27. Offline

    Tendonsie

    If I startup the newest versio of both Permissions & General mod I see this:
    Any idea how to activate, I have search some hours what the problem could been, but nothing worked.
    Thanks
     
  28. Offline

    xZise

    Hi,
    Wooo :D The solution is to create a new class which extends PermissionHandler. Or could this make any trouble?

    Sincerely
    xZise
     
  29. Offline

    Nijikokun

    Probably going to make it work with SQL only

    That way you can do in-game changes. Don't worry SQLite will be the base option.
     
  30. Offline

    Rallerbabz

    fml...



    Could anyone check this out? :S
     
  31. Offline

    majorcyto

    I would like to inform you Niji that WorldEdit and WorldGuard was updated to work with this now as i requested, i was talking to you about it last night in livestream. :p
     
Thread Status:
Not open for further replies.

Share This Page