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

    Goodday everyone. Just to clarify a few things about the recent Craftbukkit updates.

    Post Craftbukkit build 168 changed how some things are handle and therefore broke a lot of plugins.

    WorldEdit and WorldGuard have been updated to fix some issues and these new updates do not work pre 168.

    Permissions has not been updated nor does it need to be by my testing. Any errors with your config. that were not occuring before the updates, is related to other plugins you have installed. Uninstall all plugins and re-install them 1 at a time to find out which one is causing the errors.

    Essentials /mod /modgrp is causing the permissions config.yml to be reparsed into a different format. There is supposedly nothing wrong with this format, just unusual for us. So get used to it or don't use those commands.

    Any OTHER questions, I will try to answer.

    Admin edit: OH GOD ARIAL BLACK. Please avoid using custom fonts throughout the entirety of your messages, or I'll remove the option. Thanks.
     
  3. Offline

    willystylee

    *Sues chill1977 for bold eye stab*

    jk. Yeah, i'll try this, see if it works for me.
     
  4. Offline

    chill1977

    Sry just trying to get the point across lol Been driving me crazy with questions that have nothing to do with Permissions since the update becuase people ASSUME this is the problem without searching post or doing any reading. Just because Permissions controls who is able to use what does not mean that it is responsible for any errors that these plugins have.
     
  5. Offline

    Xemnas33

    Code:
    2011-01-31 18:49:38 [INFO] Preparing spawn area: 81%
    2011-01-31 18:49:39 [INFO] [iChat] version [1.3] (Jack Frost) loaded
    31-Jan-2011 18:49:39 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:78)
            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:40)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:154)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:141)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:102)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:179)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:76)
            ... 8 more
    Caused by: while parsing a block mapping
     in "<reader>", line 37, column 9:
                default: false
                ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 41, column 10:
                 permissions:
                 ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:576)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:62)
            at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:46)
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    76)
            ... 13 more
    Actually it's broken like that with only permissions running.
     
  6. I don't understand :( Why isn't permissions laoding /cry It's like the server doesn't even SEE the jar file...

    Code:
    2011-01-31 12:58:32 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-31 12:58:32 [INFO] Loading properties
    2011-01-31 12:58:32 [INFO] Starting Minecraft server on 74.119.216.130:3000
    2011-01-31 12:58:32 [INFO] Preparing level "Florae"
    2011-01-31 12:58:32 [INFO] Preparing start region
    2011-01-31 12:58:34 [INFO] Preparing spawn area: 8%
    2011-01-31 12:58:35 [INFO] Preparing spawn area: 57%
    2011-01-31 12:58:36 [INFO] [General] version [2.1] (Salvez) loaded
    2011-01-31 12:58:36 [INFO] [iChat] version [1.3] (Jack Frost) loaded
    2011-01-31 12:58:38 [SEVERE] [MYHOME] Permissions isn't loaded, there are no restrictions. 
    build 178
    the jar file is in plugins, the config is in plugins/Permissions and the log file is default.
     
  7. Offline

    MonsieurApple

    You have an error in your config
    --- merged: Jan 31, 2011 7:03 PM ---
    It works fine here. You're going to need to give some more information
     
  8. I did on previous pages, but I just edited the log in again.

    Have tried redownloading the jar file and the config file several times
     
  9. Offline

    chill1977

    Yes there is an error is or config, please post it using the code tags and I will look at it.
     
  10. Offline

    tremor

    This is just a functionality query. Essentials modified it's 'help' command to not list any of the commands in essentials that the player does not have permission to use (through the permissions plugin I assume). However, this only goes as far as Essentials. /help still displays commands available from plugins like WorldEdit and WorldGuard. Would a universal 'help' command for plugins, that only displays available commands for all plugins at the group level, be something that could be built-in to the Permissions Plugin? Or is there possibly another plugin available that already does this? Is it even possible?
     
  11. Offline

    MonsieurApple

    I *think* this is possible. It should probably be posted in the Essentials thread.
     
  12. Offline

    chill1977

    This functionality to include WorldGuard and WorldEdit may be released with the new updates to those respective plugins. They have not been fully updated to the latest builds of Craftbukkit yet. Permissions does not access the plugins, the plugins access permissions. So the plugins themselves control what herlp files are loaded not Permissions.
     
  13. Offline

    Insanehero

    WTF....I tried changing colors in iChat, but it broke the permissions plugins and now everyone has same permissions....please help
     
  14. Hmm I think I figured it out... for some reason, the server was overwriting the standard config, with the old file which I had edited :S
    So I made it stop doing that (No idea how, it just sort of happened) So it now works with the standard config.

    So what's wrong with my editted config :/

    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'
        Donator:
            default: false
            info:
                prefix: '§7[&6Donator&7]'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.teleport'
                - 'general.player-info'
        Moderator:
            default: false
            info:
                prefix: '§7[&4Mod&7]'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.items'
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Owner:
            default: false
            info:
                prefix: '§7[&4Owner&7]'
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    
    users:
        Mr_FJ:
            group: Owner
            permissions:
        Hypermx:
            group: Moderator
            permissions:
        pug101:
            group: Moderator
            permissions:
        Saccn:
            group: Moderator
            permissions:
    I couldn't find any tabs in it :/
     
  15. Offline

    chill1977

    post both files in code tags
     
  16. Offline

    Insanehero

    I got it to work now but now /permissionsreload does not work o.o
     
  17. Offline

    matejdro

    So my players are getting this message: http://img833.imageshack.us/img833/6663/unbenannt2nq.jpg

    My code:

    globals:
    Code:
    private Plugin permissions = null;
    onEnable:
    Code:
    permissions = this.getServer().getPluginManager().getPlugin("Permissions");
    Permission check:
    Code:
    public Boolean permission(Player player, String line, Boolean def)
        {
        	    if(permissions != null) {
        	    	return (((Permissions) permissions).getHandler()).has(player, line);
        	    } else {
        	    	return def;
        	    }
        }
    Code:
    plugin.permission(event.getPlayer(), "my.nodes", true)
    Any ideas? I'm trying to make it return specified value (Boolean def) if permissions plugin is not installed.
     
  18. Offline

    chill1977

    Code is fine as far as it should be loading, not sure what this is though lol prefix: '§7[&4Mod&7]'
    should be simply prefix: '&4[Mod]' suffix: '&7' this will make [Mod] the color &4 and the text color &7

    if it isnt loading then we need to see an error report
    --- merged: Jan 31, 2011 9:26 PM ---
    it's /pr and the permission node is 'permissions.reload' /pr is for ingame and 'permissions.reload is for the permissions config.yml but isnt required for those with permissions: '*'
     
  19. Offline

    Insanehero

    /pr does not work either
     
  20. The brackets around will be grey, the 'mod' will be red, and the text will be white :)

    Anyways, no it's not loading :/ How do I get an error report? The log says nothing of use.
     
  21. Offline

    chill1977

    I have not had any issue with /pr not working with any build so far but you may want to add 'permissions.reload to your group even if you do have the '*' just to check that and make sure that this isnt the only command not working, as that seems highly unusual.
     
  22. i saw you had the § simble in there, change that to & as i had problems and changing § for & worked
     
  23. Offline

    chill1977

    @Mr_Fj check your inbox please
     
  24. Thank you so much! I must have forgot to change it after copying colors from hmod wiki :D
    And thanks to you too chill1977 :D
     
  25. Offline

    dwatring

    Sorry if this has been asked before, there are lots of pages! Is it possible to set a players suffix and prefix?
     
  26. Offline

    chill1977

    Look up. You need iChat for thses to work.
     
  27. Offline

    Kainzo

    Either iChat or Herochat for the prefix and suffix to work.
     
  28. Offline

    chill1977

    or colorchat I believe as well but the author of this plugin is also the author of iChat so only makes sense to use it
     
  29. Offline

    Arthas

    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'
                - 'iConomy.payment'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'lwc.protect'
    
        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:
                - '*'
                - 'general.*'
                - 'fouram.quickport.normal'
                - 'lwc.admin'
    
        Owner:
            default: false
            info:
                prefix:'&a[Owner]:'
                suffix:'&a'
                build: true
            inheritance:
                - Admins
            permissions:
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        Arthas5678:
            group: Owner
            permissions:
        
    Cant find permissions.jar if u need the server startup thingy tell me i can post that too, one of the causes it said was that the build: true in the owner group was and invalid character or somehting the ":" to be exact
     
  30. Offline

    chill1977

    You need a space after the prefix: and the suffix: in the owners group.
     
  31. Offline

    Arthas

    *facepalm* lol thanks
     
Thread Status:
Not open for further replies.

Share This Page