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

    Mukrakiish

    No error in the console, no error in the parser. Its just a change of the color char.


    Admins:
    default: false
    info:
    prefix: §3
    suffix:
    build: true
    inheritance:
    - Moderator
    permissions:

    And I change the 3 to say, 0. That would be enough for the plugin to not load (with no console errors)
     
  3. Offline

    uncovery

    try

    '&3' instead of just §3 - note the &, too
     
  4. Offline

    chill1977

    Testing 1.9 with craftbukkit 137 and it doesnt stop me from building even with build set to false, any reason this would be?
     
  5. Offline

    nickjyc

    You need the Anti Build plugin.
     
  6. Offline

    chill1977

    Figures it would be something simple like that. I'm just learning the permission configuration and looking for things to go wrong. Thanks
     
  7. Offline

    highz

    I am getting this error!
    Jan 25, 2011 9:57:25 AM 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.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(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: while parsing a block mapping
    in "<reader>", line 2, column 1:
    plugin:
    ^
    expected <block end>, but found BlockMappingStart
    in "<reader>", line 65, column 5:
    Admins:
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.j
    ava: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.j
    ava: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

    In the group section i have this code (after that code it crashed!):
    default: true
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    permissions:
    - 'iConomy.*'
    - 'myhome.home.*'
    - 'kiwiadmin.ban'
    - 'kiwiadmin.kick'
    - 'kiwiadmin.unban'
    - 'tplus.tp.*'
    - 'tplus.history'
    - 'lwc.protect'
    Moderator:
    default: false
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    - Default
    permissions:
    - 'general.time'
    - 'general.teleport'
    - 'general.teleport.here'
    GNU nano 1.3.12 File: Permissions/config.yml

    - 'general.player-info'
    Admins:
    default: false
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    - Moderator
    permissions:
    - '*'
    Please help me!
     
  8. Offline

    McAndze

    You might have used tabs instead of spaces. DON'T!
     
  9. Offline

    Tawmu

    Can someone see where I might be going wrong with my Admin group? Either I'm being a fool or there's nothing wrong with my config:

    Also, no tabs afaik.

    Code:
    plugin:
        permissions:
            system: default
    
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: false
            inheritance:
            permissions:
                - 'general.spawn'
        VIP:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.spawn'
                - 'general.teleport'
                - 'lwc.protect'
        Donator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - VIP
            permissions:
                - 'general.spawn'
                - 'general.teleport'
                - 'lwc.protect'
    
        Mod:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'lwc.protect'
                - 'lwc.mod'
        Admin:
            default: false
            info:
                prefix: Admin_
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
                - 'lwc.admin'
    
    users:
        Tawmu:
            group: Admin
            permissions:
    
        Stutoman:
            group: Admin
            permissions: 
     
  10. Offline

    rjwboys

    just letting you know Essentials has a default to color people in the ops.txt red
     
  11. Offline

    Zenexer

    @Deages In your Essentials config.yml file, change op-name-color: 'c' to op-name-color: 'none'
     
  12. Offline

    riuthamus

    Willing to give my left nut for /modify
     
    Dspradau and TehSeph like this.
  13. Offline

    GmK

    Yes, same here, since the beginning. Niji, can you please do something about that? One of my admins can't be admin due to that.
     
  14. Offline

    TehSeph

    Same as this guy, but I'll give my right so you can have a complete set.

    /modify or something to that extent is ALL this plugin is missing. Great work Niji.
     
    Dspradau and riuthamus like this.
  15. Offline

    Daworm

    I'd love to see a webinterface built to manage updating this file.

    What would be even better is if you can build this up to run from some sort of SQL db...
     
    Dspradau likes this.
  16. Offline

    misterzizka

    so how do inheritance work? lets say i have group default with x cmds.. then i have a group after that called 'vip' with inheritance to default group.. after that i have a group called 'mods' inheritated to vip.. does mods group have the default cmds now?

    Coz it seems that it doesn't im getting this weird error..

    2011-01-25 12:34:53 [INFO] [PLAYER_COMMAND] jje: /spawn
    Jan 25, 2011 12:34:53 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to Essentials
    java.lang.ArrayIndexOutOfBoundsException: 1
    at org.bukkit.earth2me.essentials.EssentialsListener.onPlayerCommand(EssentialsListener.java:123)
    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

    Airyina

    How long until we might get an ingame solution for promoting people, rather than having to edit the file for each person that needs to be promoted?
     
    Dspradau and build and battle like this.
  18. Offline

    Suhteevah

    ill give both of my nuts for modify in game... then you can have 2 sets o.o... somewhat interesting configuration when you have a large user base this one is but hey i got it working! and as everyone else GREAT WORK Niji!
     
  19. i am the owner of a dedicated sever called Build and Battle and we were just having problems with another group permissions plugin. and i cant seem to get this 1 to work it probly is my fault but im asking if i sent u the details how i want my groups set up could u create the config file and send it back ? btw my sever has a clan based pvp system and i had the last clans set up with 2 groups 1 for leader whom had "more commands" and one for every 1 eles in clan which ended up having 12 groups (5 clans 1 for default 1 for admin) also this is a gernal question to any 1
    the old groups and users files are below --SORRY FOR THE MESSYNESS--
     

    Attached Files:

  20. Offline

    ledhead900

    How does plugin handle plugins that it does not support? for example would it ruin the config and error.

    Would it just not take globalized commands like 'pluginname.*' leaving us to add the 'pluginname.command' or even just 'plugin'

    Just curiouse.


    Edit.

    FOR ALL YOU GUYS HAVING ISSUES HERE IS MY 90% COMPLETED CONFIG WITH PROBABLY MOST THE PLUG-IN'S YOU ALL WILL BE USING ADDED ALREADY.

    " This should help with ppl with layout issues just edit it as u wish"
    <Edit by Moderator: Redacted mediafire url>

    A. Replace or remove any commands you dont need
    B. Add your usernames in the list at the bottom
    C. Copy and paste the whole thing HERE! and press convert if it shows no messege with ERROR it should work fine.
     
    Last edited by a moderator: Dec 15, 2016
  21. Offline

    Miech

    Any consideration to adding some iConomy support? Since Permissions can control the permission to most commands, having a price assoicated with them could be useful as well. Say a home plugin was installed, and makes use of Permissions, Permissions could charge the user some credits to make use of the home command and that functionality need not be written into the plugin directly. Seems something that would best be suited at the permissions layer.
     
  22. Offline

    Deages

    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'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.helpop'
                - 'essentials.clearinventory'
                - 'essentials.getpos'
                - 'essentials.spawn'
                - 'essentials.help'
                - 'essentials.motd'
                - 'essentials.rules'
                - 'essentials.afk'
                - 'essentials.msg'
                - 'myhome.home.*'
        Donator:
            default: false
            info:
                prefix: '&1[&5Donator&1] &5'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.tree'
                - 'general.exempt.usage'
                - 'general.exempt.placing'
                - 'essentials.list'
                - 'essentials.kit'
        VIP:
            default: false
            info:
                prefix: '&1[&2VIP&1] &2'
                suffix:
                build: true
            inheritance:
                - Donator
            permissions:
                - 'essentials.bigtree'
                - 'magiccarpet.mc'
        OP:
            default: false
            info:
                prefix: '&1[&3OP&1] &3'
                suffix:
                build: true
            inheritance:
                - VIP
            permissions:
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.item'
                - 'essentials.give'
                - 'essentials.list'
                - 'essentials.home'
                - 'essentials.nick'
                - 'essentials.top'
                - 'essentials.time'
                - 'essentials.kick'
                - 'essentials.ban'
                - 'essentials.unban'
                - 'essentials.banip'
                - 'essentials.unbanip'
                - 'myhome.*'
                - 'vanish.*'
                - 'mcbans.*'
                - 'bb.admin'
        Admin:
            default: false
            info:
                prefix: '&1[&4Admin&1] &4'
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        Deages:
            group: Admin
            permissions:
            - '*'
        Darkflux:
            group: Admin
            permissions:
            - '*'
        ratmatix:
            group: Admin
            permissions:
            - '*'
        BuddaT:
            group: Admin
            permissions:
            - '*'
        Razorthe6249th:
            group: OP
            permissions:
        Manetheran:
            group: OP
            permissions:
        Sibrand:
            group: VIP
            permissions:
        Sundeki:
            group: VIP
            permissions:
        aattlas:
            group: VIP
            permissions:
        Kaijev:
            group: Donator
            permissions:
        kvhokuto:
            group: Donator
            permissions:
        goldenaiii:
            group: Donator
            permissions:
    
    Still here guys :p
    Well it turns out Essentials was changing the admins names to red, however when I set the var to none ...no colours are working, for anyone D:
    I even tried it on a separate map just incase there was some save error with names in the players.dat
     
  23. Offline

    Macus

    For some reason /pr (in or out of game) wont work

    console:
    Code:
    2011-01-25 09:22:29 [INFO] Macus17 issued command: /plugin enable Permissions
    2011-01-25 09:22:29 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-01-25 09:22:33 [INFO] Macus17 issued server command: rp
    2011-01-25 09:22:33 [INFO] Unknown console command. Type "help" for help.
    2011-01-25 09:22:56 [INFO] Macus17 issued server command: pr
    2011-01-25 09:22:56 [INFO] Unknown console command. Type "help" for help.
    any ideas?
     
  24. Offline

    Tawmu

    Also getting this issue.
     
  25. Offline

    Vogue

    Hey guys, got some problems to get this plugin running.

    here is a screenshot of the errors the server is giving me out

    [​IMG]

    Thanks for any help in advance :)
     
  26. Offline

    Mhalkyer

    Download iChat to your plugins folder.
    --- merged: Jan 25, 2011 5:17 PM ---
    Make sure you've unzipped the .Jar files, my Plugins folder has no zip files.
    --- merged: Jan 25, 2011 5:18 PM ---
    Use the converter in my signature to create a config.yml that will work with Permissions.
     
  27. Offline

    waffulz

    I'm having an issue where any player that connects to the server can use commands such as: /ban, /time, /give, ect.

    http://pastebin.com/ndEDqYS0 (Config)

    Any help is much appreciated. :)
     
  28. Offline

    Vogue

    Thank you Mhalkyer but this is obvious xD There are no .zip files in my folder, only .jar
     
  29. Offline

    Etsijä

    Sorry for my ignorance, but I'm trying to set iChat + Permissions so that in chat:
    - admins would be shown in red as "[Name] message"
    - VIP's would be shown in yellow as "[Name] message"
    - defaults would be shown in white as "[Name] message"

    but every way I try to set it up, I just cause iChat to thow a java execption on my console. Could someone post a really really easy example of setting the chat as I like it? Also couls someone post the link with all the colour codes on one webpage, I did see it some days ago but have lost it.

    And yes, I have read through the OP, and yes, I've tried to read through the 28 pages of discussion...still...
     
  30. Offline

    Mhalkyer

    Haha, just making sure! What version of CraftBukkit and Permissions are you running? I would try updating both.

    Also upload your entire error message(s) to www.pastebin.com and post the link.
    --- merged: Jan 25, 2011 6:45 PM ---
    iChat/config.yml:
    Code:
    message-format: '[+prefix+name&f] +suffix+message'
    Permissions/config.yml:
    Code:
    prefix: '&4'      #<----Name Color
    suffix: '&4'      #<----Message Color
    Here's a color chart:
    [​IMG]
     
    tension69 likes this.
  31. Offline

    Etsijä

    Thanks a million Mhalkyer, that worked!

    Where could I find that colour table also in future? Is it a secret code for the Yaml user's own secret society or what? I am a complete noob when it comes to that format/language.
     
Thread Status:
Not open for further replies.

Share This Page