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

    chill1977

    did you try to start the vanilla craftbukkit, no plugins? Are you positive all files are in the correct places? I'm sending you a convo check inbox
     
  3. Offline

    LolRiTTeR

  4. Offline

    chill1977

    Where did that essentials config come from? Thats the problem default is this so where did all that come from..

    Code:
    # A color code between 0-9 or a-f. Set to 'none' to disable.
    ops-name-color: 'c'
    
    # The character(s) to prefix all nicknames, so that you know they are not true usernames.
    nickname-prefix: '~'
    
    # The delay, in seconds, required between /home, /tp, /warp, etc.
    teleport-cooldown: 60
    
    # The delay, in seconds, required between /heal attempts
    heal-cooldown: 60
    
    # The number of items given if the quantity parameter is left out in /item or /give.
    default-stack-size: 64
    
    # The message of the day, displayed on connect and by typing /motd.
    motd:
      - '&cWelcome, {PLAYER}&c!'
      - '&fType &c/help&f for a list of commands.'
      - 'Currently online: {PLAYERLIST}'
    
    # The server rules, available by typing /rules
    rules:
      - '[1] Be respectful'
      - '[2] Be ethical'
      - '[3] Use common sense'
    
    # Disabled commands will be completelly unavailable on the server.
    disabled-commands:
    - nick
    
    # Restricted commands will only be available to ops.
    # These will have NO EFFECT if you have Permissions installed!
    # These are here only if you want something simpler than Permissions.
    restricted-commands:
      - bigtree
      - item
      - give
      - heal
      - plugin
      - time
      - top
      - tp
      - tphere
      - tree
    
    # Note: All items MUST be followed by a quantity!
    # Times are measured in seconds.
    kits:
      tools:
        delay: 10
        items:
          - 277 1
          - 278 1
          - 279 1
    
    # End of File
     
  5. Offline

    FuzzyTeddy4

    I cant understand the Pemrissions plugin.
    i literally read the whole thing. then went to jail and read the whole thing then went to general and read the whole thing, and yet it doesnt work for me!
    actually mywarp and jail dont even get loaded by the console, but general does, and so does permissions and the other GOOD plugins that dont use permissions, i refuse to use generals settings. cause i know that permissions is going to be big with the future plugins so i wanted to get a head start. here is a screenie:

    [​IMG]

    I think i put it in all right , but when i go in-game none of my plugins work, except the ones that dont use permissions Any Hellp.
     
  6. Offline

    captainawesome7

    Can't you use the essentials plugin and use the /mod playername group command?
     
  7. Offline

    LolRiTTeR

    Still the same errors, sorry

    I just got the config files from a friend.


    I'll try to reconfig the Permissions-file with the original one.
     
  8. Offline

    chill1977

    It's hard to tell without having he code so i can copy it and paste it into my stuff but the permissions at the bottom users FuzzyTeddy are not in their correct format, move the 3 lines with the - over in line 12 spaces from the left margin
    --- merged: Jan 31, 2011 1:36 AM ---
    You can but you will completely reformat the permissions file and it makes it hard for most people to read, although I am figuring it out.
    --- merged: Jan 31, 2011 1:38 AM ---
    what do you mean same errors you just said it started fine lol

    The file I posted there was the one that essentials created in the plugin/essentials config.yml, not something i made or edited

    Do you mean after you put your permissions config.yml back in?
     
  9. Offline

    FuzzyTeddy4

    Nvm I gave up on this Hateful Plugin >_>
    Ruined my only chance of gettin back o my old island.
    Ever since i got it my warpgates stopped working
     
  10. Offline

    BradNowacki

    Alright so i have a bit of a problem with yml and iChat

    Tell me whats wrong please

    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:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
        Owner:
            defult: false
            info:
                prefix:'&6[Owner]:'
                suffix:'&6'
                build: true
            inheritance:
                - Admins
            permissions:
    
    users:
        bradnowacki:
            group: Owner
            permissions:
    And here is the iChat file

    Code:
    message-format: '+prefix+name: +suffix+message'
    Its something with the Owner class i made because when i comment the lines it works, but i still cant use commands when i set myself as an admin
     
  11. Offline

    LolRiTTeR

    Okay, everything works fine.

    Every plugin trys to wirk with each other, and it looks good :D


    Now i need the Colour 'yellow', for my Permissions-Config File. I want the Chat-Names from 'registered Users' in yellow.

    Thanks :>
    - LolRiTTeR
     
  12. Offline

    chill1977

    @BradNowacki you need a space after the colons on both of these lines. , prefix and suffix.

    and I would change the ichat file to
    message-format: '+prefix+suffix +name: +message'

    Code:
    Owner:
            defult: false
            info:
                prefix:'&6[Owner]:'
                suffix:'&6'
                build: true
            inheritance:
                - Admins
            permissions:
    
    
     
  13. Offline

    BradNowacki

    Ok why should i change the iChat file, because i don't totally understand who that config works
     
  14. Offline

    chill1977

    That configuration tells permissions how to format the color and the information you put in the prefix and suffix area of the user groups
     
  15. Offline

    BradNowacki

    Ok so i changed the file to

    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:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
        Owner:
            defult: false
            info:
                prefix: '&6[Owner]:'
                suffix: '&6'
                build: true
            inheritance:
                - Admins
           permissions:
    
    users:
        bradnowacki:
            group: Admins
            permissions:

    and the iChat to

    Code:
    message-format: '+prefix+suffix +name: +message'
    And im still getting the errors
    --- merged: Jan 31, 2011 2:52 AM ---
    Its something with my Owners Group
    --- merged: Jan 31, 2011 2:56 AM ---
    Umm ok so I re typed it and now its working, idk why but im done using copy/paste
    --- merged: Jan 31, 2011 3:00 AM ---
    Lol i do want to ask how can i get my test i type to be a color?
     
  16. Offline

    chill1977

    Your "permissions: " was out of line in the owners group by one place

    The owner should be color name and text, if you do the same for the other groups then they will be as well, it's the prefix and suffix tags in the groups
     
  17. Offline

    Gene Myers

    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:
                - 'essentials.me'
                - 'essentials.tpahere'
                - 'essentials.tpa'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'essentials.tptoggle'
                - 'essentials.list'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.helpop'
                - 'essentials.clearinventory'
                - 'essentials.getpos'
                - 'essentials.whois'
                - 'essentials.spawn'
                - 'essentials.help'
                - 'essentials.compass'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.motd'
                - 'essentials.time'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.kick'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.top'
                - 'essentials.ban'
                - 'essentials.banip'
                - 'essentials.unbanip'
                - 'essentials.
        Admins:
            default: false
            info:
                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'
    Ok seriously i need help.. please i wil ldonate to your plugin what ever it takes.. for some reason i cant get this to work.. what am i doing wrong

    i know obviously i didnt edit the users.. i just edidted the general group.. i tested it with a non op user.. they dont have access to any of those commands that are on there.. permission sisnt working for any plug in.. this is the foruth time ive tried :-\ i really would like to use this plug in as it would help take my server to the next level.. i promsie $20 via paypal for anyone who can help me get this up and runnong
     
  18. Offline

    chill1977

    @gene Myers

    There ya go boss lol

    Code:
    plugin:
        permissions:
            system: default
    
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'essentials.me'
                - 'essentials.tpahere'
                - 'essentials.tpa'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'essentials.tptoggle'
                - 'essentials.list'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.helpop'
                - 'essentials.clearinventory'
                - 'essentials.getpos'
                - 'essentials.whois'
                - 'essentials.spawn'
                - 'essentials.help'
                - 'essentials.compass'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.motd'
                - 'essentials.time'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.kick'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.top'
                - 'essentials.ban'
                - 'essentials.banip'
                - 'essentials.unbanip'
                - 'essentials.'
        Admins:
            default: false
            info:
                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'
     
  19. Offline

    jwideman

    50 pages is a LOT to go through, so I'm sorry if this has been asked before:
    Does this replace the need for op.txt? If so, how would I set permissions for the standard commands?
     
  20. Offline

    chill1977

    Yes this overides the ops.txt

    It depends on what plugin you will use for a what I call a "Base" , either General or Essentials. I prefer Essentials. Then if you send me a convo I can help you set up a basic permissions configuration.
     
  21. Offline

    EvilMaL

    hmm he was only missin a '

    wouldn't - 'essentials.' give his mods access to every command essentials has ? or am i reading the code wrong ?
     
  22. Offline

    chill1977

    nope you are reading it correctly and that was the exact problem lol but actually it should be either 'essentials.*' or just '*' depending on whether they had plugins they didnt want the mods to access
    --- merged: Jan 31, 2011 3:38 AM ---
    *Checking paypal account* nope nothing lol
     
  23. Offline

    dwatring

  24. Offline

    Jobsti

    And angain:

    Some basic help

    Soooo, so many questions about the same.... many users won't read the last pages, so read this please.
    I will link this post sometimes.

    Basics:
    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.
    ..... Don't work? Check your inheritance and there can only be ONE default group!

    If you want to post your Error, post your Permissions Config, PluginConfig and Errorlog via Pastebin
    (With pastebin, you only post a link, no code-spamming the Forum, and it has the correct format)
    Post you Craftbukkit build number and your plugin version!

    Default users can build, help me:
    Look in the first post, you need AntiBuild

    PREFIX, COLORS, HELP ME OUT!!!!!!!!
    Want to do this:
    [​IMG]
    Look in the firt post, you need iChat
    I use:
    In the iChat config:
    message-format: '+prefix+name: +suffix+message'

    Prefix and Suffix in the permission config:
    prefix: '&1[&3Admin&1]&2'
    suffix: '&4'

    result:
    [Admin]Jobsti: My Chattexts
    In prefix, I can add Color for the prefix, the prefixtext and the nickname-color.
    In Suffix, I can edit the Chatcolor

    @ALL
    You have to add "message-format:...." to the iChat config by yourself, or you will get an error in the ServerConsole!

    If you have an error, that you get alltimes "no permission.... [see picture]", but command works?
    Check out all your plugins! (my waste producer was the mute plugin, first version.)

    You can reload the permissions with /pr to test your prefixex, BUT you have to restart the server, if you change the iChat config.

    Link this post please
     
  25. Offline

    Cool12309

    Excuse me for being a noob(first time I am adding a plugin to Bukkit), but is this the correct order?
    -Folder
    --plugins
    ---Permissions.jar
    ---Permissions
    ----config.yml

    ?

    Edit: I also was wondering if I could get a free YML file opener. The online ones require me to get the.. whatever.. and I don't know how to get it.
     
  26. Offline

    EvilMaL

    when you run bukkit for the first time with permissions.jar in the plugin folder it will create all the files you need to edit

    and for the other question i use mousepad for linux. i'm guessing notepad will work for windows
     
  27. Offline

    DerET

    We need a new permissions version for build #184+
     
  28. Offline

    Jobsti

    No.
    permissions is working fine for me on #186 (as far as i testet it). Only a bunch of Generals commands, and tkellys plugins won't work.
     
  29. Offline

    xZise

    @Jobsti Nice post, but its in the middle of the thread and who want to read all pages? And there are several difficulties in YAML:
    • Instead of tabs using spaces
    • The indentation has to be identical if they are at the same level
    • Place texts in single quotes (like in prefix/suffix), but not references (like in users → groups)
    • Place a space between the colon and the “value” (like in “prefix: '&b'”)
    This will cover the common of the problems!

    The best will be, if in the OP is a link to your “Tutorial/FAQ”.

    @FuzzyTeddy4: At first, you don't have to use this plugin, so don't use it if you don't like it. And then second: chill1997 tried to help you, but either you ignore him or it didn't worked out. But also then you have to upload the complete configuration file (e.g. on pastebin).

    Fabian
     
  30. Offline

    GyD

    When i send /pr all the plugins are reloaded but i'm not sure it's a Permission bug maybe a Essentials bug. If someone can confirm that :)
    No other troubles with permissions BTW.

    thank for you work

    Edit: i confirm i came from Essentials. Sorry for my post :$
     
  31. Offline

    LolRiTTeR

    I cant get the colour for the normal user working.

    This is the line with the colour:
    Code:
        info: {prefix: '&e', suffix: '&f', build: true}
    Could somebody please give me the right Code so the colour is yellow?


    Ah, and.. When i write something into the chat, this Error comes up:

    Code:
    31.01.2011 13:28:40 org.bukkit.plugin.SimplePluginManager callEvent
    SCHWERWIEGEND: Could not pass event PLAYER_CHAT to iChat
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroup(Control.java:367)
            at com.nijikokun.bukkit.iChat.Listener.onPlayerChat(Listener.java:38)
            at org.bukkit.plugin.java.JavaPluginLoader$4.execute(JavaPluginLoader.ja
    va:138)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:213)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:562)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    - LolRiTTeR
    --- merged: Jan 31, 2011 12:43 PM ---
    Okay, forget it.

    The Problem was following:
    The User had the group 'group' granted, and that was the cause of the error and the colour..


    I had to use another command to add rights, but now a little question (no Problem)

    When i use /modgrp user GROUP everyone have to re-login.. Why is that, and can i stop that?

    - LolRiTTeR
     
Thread Status:
Not open for further replies.

Share This Page