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

    fffizzz

    get a bad gateway message from drop box when trying to download latest..
     
  3. Offline

    Nijikokun

    1.7 Released: Not using dropbox for this release. More stable solution.

    Changelog is on first post as is the download. Jar only is available for those who want a quicker solution to updating.
     
  4. Offline

    8e8

    Finished reworking my plugin and adding features. It is now compatible with Permissions, but I still can't give all-access (godmode.*). Throw the plugin on the supported list if you'd like.
     
  5. Offline

    Nijikokun

    Use 1.7, it was recently fixed.
    --- merged: Jan 22, 2011 2:15 PM ---
    Actually this could be beneficial.
     
  6. Offline

    Kylei

    Not Works :(
    If I file in the Config look it is empty, the folder is empty
     
  7. Offline

    Nijikokun

    @kylei: download the archive.
    @woahitsjc: I won't help you until you use http://pastebin.com and fix your post. I can't help you with that pasted config because there are no spaces in it and without those I can't fully help you. Sorry.
     
  8. Offline

    woahitsjc

  9. Offline

    Kylei

    Where to put the folder?
     
  10. Offline

    woahitsjc

    in the plugins folder
     
  11. Offline

    Nijikokun

  12. Offline

    woahitsjc

    It didn't work I tried everything still doesn't work is there a video tutorial for any of this?
     
  13. Offline

    Kylei

    Still does not work.
     
  14. Offline

    lawina

    Is it possible to remove the group name in front of chats (and maybe color the usernames instead)?
     
  15. Offline

    ledhead900

    Alright this plugin pisses me off 100% more then Hmod plugin did I have no choice but to use this one and its the most complicated thing I have ever had to setup I honstly don't know you ppl try to change the way Hmod groups worked that was the most easiest thing I have ever used.

    I setup up this thing thinking yea no worrys but its so fussy it can't even accept its own suffix: line in the config it errors out on the praser even with out modification and it errors in console.

    PHP:
    23/01/2011 1:05:45 AM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE
    Could not load plugins\Permissions.jar in pluginsnull
    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 byjava.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:81)
            ... 
    8 more
    Caused by
    mapping values are not allowed here
     in 
    "<reader>"line 40column 19:
                    
    suffix:
                          ^

            
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
            
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
            
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
            
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:5
            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.composeMappingNode(Composer.java:230)
            
    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:1
            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
    Most likely my config is wrong as well and lets face with the BS i have to thru to set this type of list up I did not even bother finishing it or adding other commands as for the life of me cannot work out how I would give them out properly.

    Yes I read posts and I took a good 20 min or so look at how the default was layed out. You can get pissed of with me all you want. But with no hard documentation and making something overcomplicated you expect this kind of critisism. I really dont intend to be rude about any of this I would love nothing more then get it work and work this thing out.

    Instead we get http://yaml-online-parser.appspot.com/ shoved in our faces and told to debug it our self, well even the default config un edited managed to error that thing!.


    And here is my config

    PHP:
    # 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:'&8[Guest]'
                
    suffix:
                
    buildtrue
            inheritance
    :
            
    permissions:
                - 
    'general.spawn'
                
    'lwc'
                
    'general.help'
                
    'general.afk'
                
    'generalessentials.kit'
        
    Explorer:
            default:
            
    info:
                
    prefix:'&5'
                
    suffix:
                
    buildtrue
            inheritance
    :
                - Default
            
    permissions:
                - 
    'general.spawn'
                
    'privatewarp.pw'
                
    'mywarp.warp'
                
    'cleaner.clean'
        
    Member:
            default:
            
    info:
                
    prefix:'&e'
                
    suffix:
                
    buildtrue
            inheritance
    :
                - 
    Explorer
            permissions
    :
        
    Trusted:
            default:
            
    info:
                
    prefix:'&a'
                
    suffix:
                
    buildtrue
            inheritance
    :
                - 
    Member
            permissions
    :
                - 
    'MyWarp'
                
    'general.teleport'
                
    'worldedit.thru'
                
    'worldedit.descend'
                
    'worldedit.ascend'
                
    'worldedit.ceil'
                
    'worldedit.up'
        
    Vip:
            default:
            
    info:
                
    prefix:'&6[Donator]'
                
    suffix:
                
    buildtrue
            inheritance
    :
                - 
    Trusted
            permissions
    :
                - 
    'general.items'
        
    Moderator:
            default: 
    false
            info
    :
                
    prefix:'&9'
                
    suffix:
                
    buildtrue
            inheritance
    :
                - 
    Trusted
            permissions
    :
                - 
    'general.teleport'
                
    'general.teleport.here'
                
    'general.player-info'
                
    'general.items'
                
    'worldedit'
                
    'cleaner'
                
    'worldguard.region'
                
    'worldguard.regionbypass'
        
    Admins:
            default: 
    false
            info
    :
                
    prefix:'&4'
                
    suffix:'&c'
                
    buildtrue
            inheritance
    :
                - 
    Moderator
            permissions
    :
                - 
    '*'

    ##
    # Ledhead has control over all commands.
    ##
    users:
        
    ledhead900:
            
    groupAdmins
            permissions
    :
        
    necrodoom:
            
    groupModerator
            permissions
    :
    I dont expect anyone to fix this as I was rude but I have my reasons and I'm wits end with permissions in .yaml now. I appolgize I do not mean any harm everyone has the right to make a plugin and design it how they wish. I hope .yaml dies with the brith of the bukkit groups.


    edit:
    I realized some issues but I dont see any that would effect it not giving the ADMIN all commands. Plus the preffix did not work.

    Im probably doing it all wrong I did not get any "AWW SNAP" moments yet.
     
  16. Offline

    juntalis

    I'm afraid I'm having the same problem that ledhead appears to be having. While I've validated the YAML and double-checked it repeatedly, I'm still not getting any prefixes or acknowledgment that my player is an admin.

    This was the first configuration file I attempted.

    When my first attempts didn't work, I tried using the default configuration, and substituting my name into the users section.

    My second attempt.

    I finally got around to playing with Bukkit yesterday, however, so I wouldn't be surprised if I'm doing something wrong. Still, I'm not receiving any errors in the console, and everything appears to be loading correctly.
     
  17. Offline

    Nijikokun

    For those who want to use the build: permission, look here.
    For those who want older version of this look here.

    @ledhead9000: You need a space after prefix: and the single quotes (')

    --- merged: Jan 22, 2011 3:11 PM ---

    To get the prefixes or acknoledgements, download iChat, Page 7 or view the topic near the bottom.

    --- merged: Jan 22, 2011 3:12 PM ---

    WHEN SOMETHING DOES NOT WORK PLEASE DON'T SAY IT DOESN'T WORK. POST EXACTLY WHAT DOESN'T WORK, AND USE PASTEBIN, SO WE CAN EFFECTIVELY HELP YOU. OTHERWISE WE CANNOT.

    Thank you.
     
  18. Offline

    Mhalkyer

    To be fair you dont say anywhere in your OP that prefix colors won't work without iChat. Most ppl won't read 7 pages of any thread.

    Did you see my converter application?
     
  19. Offline

    KiloWhiskey

    Wow, thank you! I have to say I find it odd that you wrote both plugins and know that people will want both option, but decided not to add the build right options directly into the program that controls player rights. :p

    On to my real post. Can someone post a WORKING but very complex groups system? I fear that my 40+ groups will take me a year to work out and if I could see something like it working I could just change the group names and get mine rolling.

    Also, any chance you could post what 'default' iChat settings should look like? I just have a blank file.
     
  20. Offline

    mrgreaper

    ok we have to move from groupp users to this but i cant figure out how to convert the /commands to something.command
    or how to add colours to group user names
    been waiting for a flatfile version but everything seems to be going to this horrible yml file format...it seems i must use yml grrrr.

    but how do i convert from this; group.txt
    Code:
    #Add your groups here (When adding your entry DO NOT include #!)
    #The format is:
    #NAME:COLOR:COMMANDS:INHERITEDGROUPS:ADMIN/UNRESTRICTED
    #For administrative powers set admin/unrestricted to 2.
    #For no restrictions and ability to give out items set it to 1.
    #If you don't want the group to be able to build set it to -1.
    #Inherited groups and admin/unrestricted are optional.
    #Examples:
    # admins 4 (red), global mods 5 (purple), staff e (yellow), vip 2 (green) , loyal (over 2 years) b (light blue)
    admins:4[Admin] :*:mods:2
    mods:5[Mod] :/ban,/kick,/item,/tp,/tphere,/s,/i,/give,:vip:1,
    staff:e[Staff] :vip
    loyal:b[Loyal] :vip
    vip:2[vip]:/help,/top,/getpos,/home set,/home,/spawn,/me,/msg,/kit,/playerlist,/motd,/compass,/tell,/m,/who,:default,
    default:f:/help,/home set,/home,/spawn,/list,/achievements,/listachievements,/mail,/mail read,/mail clear,/buy,/sell,/balance,/pay,/undo,/prices,spawn,/me,/msg,/kit,/playerlist,/motd,/compass,/tell,/m,/who,/stackable:default,
    and this
    user.txt
    Code:
    #Add your users here (When adding your entry DO NOT include #!)
    #The format is:
    #NAME:GROUPS:ADMIN/UNRESTRICTED:COLOR:COMMANDS:IPs
    #For administrative powers set admin/unrestricted to 2.
    #For no restrictions and ability to give out items set it to 1.
    #If you don't want the person to be able to build set it to -1.
    #Admin/unrestricted, color and commands are optional.
    #Examples:
    #Adminfoo:admins
    #Moderator39:mods:1:0:/unban
    #BobTheBuilder:vip:0:d
    mrgreaper:admins:2
    moleking82uk:admins:2
    Stevenb88:vip:0
    Dooberry:vip:0
    into the config.yml?
    im guessing its
    groups
    <TAB>VIP
    <TAB><TAB>default:false
    <TAB><TAB>info:
    <TAB><TAB><TAB>prefix:2[VIP]
    <TAB><TAB><TAB>suffix:
    <TAB><TAB><TAB>build:true
    <TAB><TAB>inheritance:
    <TAB><TAB><TAB> Default
    <TAB><TAB>Permisions:
    <TAB><TAB><TAB> /help,/home set,/home,/spawn,/list,/achievements,/listachievements,/mail,/mail read,/mail clear,/buy,/sell,/balance,/pay,/undo,/prices,spawn,/me,/msg,/kit,/playerlist,/motd,/compass,/tell,/m,/who,/stackable


    (obvously the / comands need to be converted to the something.somthing comand? do each need to be on there own line?

    then for users

    users:
    <TAB>mrgreaper
    <TAB><TAB>group:Admins
    <TAB><TAB>permisions:
    <TAB>stevenb88
    <TAB><TAB>group:VIP
    <TAB><TAB>permissions:


    have i got that all right? sorry for the long post but i just having a hard time getting me head around the new way and these yml files (the ones i have edited on other plugins have caused plugins to fail ....i even had to replace notepad with notepad ++ and of all things cut and paste my tabs! the tab key causes it to error...though im guessing thats notepad ++ error)
     
  21. Offline

    Mhalkyer

    Yeah, you can't use tabs! Try my app in my sig to convert groups/users.text to a working config.yml. I'm going to update it to fix some bugs in a the next hour, but it does work now!
     
  22. Offline

    mrgreaper

    i gave it a try and got an error "length cannot be less then zero"
    from the details box
    Code:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length
       at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
       at Mconverter.MainForm.convert_btn_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    Mconverter
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///E:/New%20folder%20(2)/Mconverter.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    
    
    these yml files are driving me mad, dont get me wrong the work you guys are doing is MAJORLY appreciated it really is, i just wish i knew why all plugin creators seem to be moving to a format that if you have one wrong type of tab the whole thing falls over....im guessing there is a reason but no one has said what they just all switched lol

    A converter is a fantastic idea though and i thank you for it (im on windows 7 64bit) if that helps diagnose the issue
     
  23. Offline

    Tobzi

    Hey!d

    I cant seem to get my Vip group to work. when a tag a member Vip he becomes default and when i
    inheritance: Vip

    In my Moderator group they can not do /lwc or anything but whwn i do
    inheritance; Member
    it works.
    here is my pastbin hope u can help me whats wrog
    http://pastebin.com/b6qKUpUS
    Best regards Toby
     
  24. Offline

    bandit6789

    I was getting this error, when I tried doing mine, so I tried with the sample users and groups, found that my users file was the problem. Found out the problem was most of my users did not have the correct number of colons, so some where like bandit6789:admins when I added 2 colons to the end (to match the sample file) bandit6789:admins:: it worked just fine. Took less time to go add those to each name than retype them all.
     
  25. Offline

    mrgreaper

    tried it and still no go, even removed all the rem lines
    my files look like this now,
    Groups.txt
    Code:
    admins:4[Admin] :*:mods:2
    mods:5[Mod] :/ban,/kick,/item,/tp,/tphere,/s,/i,/give,:vip:1,
    staff:e[Staff] :vip
    loyal:b[Loyal] :vip
    vip:2[vip]:/help,/top,/getpos,/home set,/home,/spawn,/me,/msg,/kit,/playerlist,/motd,/compass,/tell,/m,/who,:default,
    default:f:/help,/home set,/home,/spawn,/list,/achievements,/listachievements,/mail,/mail read,/mail clear,/buy,/sell,/balance,/pay,/undo,/prices,spawn,/me,/msg,/kit,/playerlist,/motd,/compass,/tell,/m,/who,/stackable:default,
    and
    users.txt
    Code:
    mrgreaper:admins::
    moleking82uk:admins::
    Stevenb88:vip::
    Dooberry:vip::
    just cant figure out where im going wrong
     
  26. Offline

    KiloWhiskey

    I had the same result as mrgreaper. [Length cannot be less then zero] and it outputs a blank file.
     
  27. Offline

    DoritosMan

    Players can still TP and Give
    And I don't have a permission in the default to let them /give or /tp
    Its all Moderator+
    Any idea why
     
  28. Offline

    Tendonsie

    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:
                - 'general.spawn'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Admins:
            default: false
            info:
                prefix: '&3'
                suffix: '&4'
                build: true
            inheritance:
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        tendonsie:
            group: Admins
            permissions:
                - '*'
        sk89q:
            group: Default
            permissions:
                - 'general.time'
    I use a clean new craftbukket server with only this mod with the newest version of both.
    If I login with my user Tendonsie I can't build anything. If I login with an other new user, he can't also build anything. Idea idea why ?
     
  29. Offline

    Mhalkyer

    I figured it was something like that. I relaxed the ":" requirements. Here's an updated version:

    Convert Groups/Users.txt to Config.yml:
    http://www.speedyshare.com/files/26416540/Mconverter.zip

    I'll update the link in my signature too.
     
  30. Offline

    bandit6789

    Ok, I tried yours, your users file is fine, the problem is in your groups, there are not enough colons in the line for staff and loyal groups.

    yours are
    Code:
    staff:e[Staff] :vip
    loyal:b[Loyal] :vip
    
    They need to be
    Code:
    NAME : PREFIX/COLOR : COMMANDS : INHERITEDGROUPS : ACCESS
    staff:e[Staff] ::vip:
    
    So added a colon before and after vip

    Here is the file the converter program came up with once I had that fixed:
    Code:
    # Supports "system: default" and "system: GroupUsers"
    plugin:
        permissions:
            system: default
    groups:
        admins:
            default: false
            info:
                prefix: '4[Admin] '
                suffix:
                build: true
            inheritance:
                - mods
            permissions:
                - '*'
        mods:
            default: false
            info:
                prefix: '5[Mod] '
                suffix:
                build: true
            inheritance:
                - vip
            permissions:
                - 'ban'
                - 'kick'
                - 'item'
                - 'tp'
                - 'tphere'
                - 's'
                - 'i'
                - 'give'
    '
        staff:
            default: false
            info:
                prefix: 'e[Staff] '
                suffix:
                build: true
            inheritance:
                - vip
            permissions:
    
        loyal:
            default: false
            info:
                prefix: 'b[Loyal] '
                suffix:
                build: true
            inheritance:
                - vip
            permissions:
    
        vip:
            default: false
            info:
                prefix: '2[vip]'
                suffix:
                build: true
            inheritance:
                - default
            permissions:
                - 'help'
                - 'top'
                - 'getpos'
                - 'homeset'
                - 'home'
                - 'spawn'
                - 'me'
                - 'msg'
                - 'kit'
                - 'playerlist'
                - 'motd'
                - 'compass'
                - 'tell'
                - 'm'
                - 'who'
    '
        default:
            default: true
            info:
                prefix: 'f'
                suffix:
                build: true
            inheritance:
                - default
            permissions:
                - 'help'
                - 'homeset'
                - 'home'
                - 'spawn'
                - 'list'
                - 'achievements'
                - 'listachievements'
                - 'mail'
                - 'mailread'
                - 'mailclear'
                - 'buy'
                - 'sell'
                - 'balance'
                - 'pay'
                - 'undo'
                - 'prices'
    spawn'
                - 'me'
                - 'msg'
                - 'kit'
                - 'playerlist'
                - 'motd'
                - 'compass'
                - 'tell'
                - 'm'
                - 'who'
                - 'stackable'
    users:
        mrgreaper:
            group: admins
            permissions:
    
        moleking82uk:
            group: admins
            permissions:
    
        Stevenb88:
            group: vip
            permissions:
    
        Dooberry:
            group: vip
            permissions:
    

    I hated these YML files until I started using a more powerful editing tool, Notepadd++, which takes about 1 minute to install, and reallllllllly helps editing these yml's.
     
  31. Offline

    Jinux

    Hey, I'm sorry I didn't trudge through 17 pages of comments so forgive me for asking if this has already been answered.

    I'm a plugin developer and I'd like to know how I turn my if/else "/command" type structure into a Permissions compatible "plugin.command" style structure within the actual plugin? I can't see anything in the OP about exactly how to do it, only how to check permissions.
     
Thread Status:
Not open for further replies.

Share This Page