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

    Desereck

    @Sargeo restricted-command false will allow anyone to use it however, so there's no way to limit what people can or can-not do unless you're willing to op people.

    @Nijikokun No fix for ichat 1.2 not working? I saw you were online earlier today :(

    I'm going to use ichat 1.0 since both 1.2 and 1.1 are broken.
     
  3. By the way - another "protip" for people having problems with editing .yaml. If you want to delete the spaced tabs (provided you have set up tabs as spaces in the first place) you just press shift+tab in most good text editors (like Notepad++ and Ultraedit for instance).
     
  4. Offline

    achmed

    @Lim-Dul
    I have one more question how do I add chat colors?
     
  5. Offline

    Rallerbabz

    I guess this is the problem...
    Code:
    23-01-2011 19:40:40 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\iChat.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava: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 Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:81)
            ... 8 more
    Caused by: java.lang.NullPointerException
            at org.bukkit.util.config.ConfigurationNode.getProperty(ConfigurationNod
    e.java:32)
            at org.bukkit.util.config.ConfigurationNode.getString(ConfigurationNode.
    java:73)
            at org.bukkit.util.config.ConfigurationNode.getString(ConfigurationNode.
    java:90)
            at com.nijiko.iChat.configuration.ConfigurationHandler.load(Configuratio
    nHandler.java:18)
            at com.nijikokun.bukkit.iChat.iChat.<init>(iChat.java:99)
            ... 13 more
    LWC     [v1,46] Loading shared objects
    Config  [v1,46] Loaded 7 config entries
    2011-01-23 19:40:41 [INFO] [Permissions] version [1.8] (Handler) loaded
     
  6. You have to download the iChat plugin posted in this thread. It won't boot by default due to its empty config file.

    Just put in this SINGLE line in there:

    Code:
    message-format: '[+prefix+group+suffix&f] +name: +message'
    This will define the message format.

    Then, in permissions' config.yml, you have the prefix: and suffix: fields. Add color codes to them, for instance:

    Code:
    groups:
        guest:
            default: true
            info:
                prefix: '&8'
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
    You can also edit the iChat config line to change your message format - prefix and suffix will be parsed in from the Permission settings file.

    For instance I'm using a line like this:

    Code:
    message-format: '[+prefix&f] <+suffix+name&f> +message'
    And then hat in Permissions (for the guest group):

    Code:
            info:
                prefix: '&8O'
                suffix: '&8'
                build: false
     
  7. Offline

    maxsteele

    Right now, I have a group set up in Permissions called 'VIP'. Every time someone in the vip group does an action on the server, the console gets spammed with:

    vip
    vip
    vip
    vip
    vip
    vip

    In the Permissions file, it's in all caps 'VIP', but the spam in the console is in lowercase like above.

    I removed my test user from the vip group, and the vip spam stopped in the console.

    Here is what my permissions looks like:

    Code:
    [/FONT]
    [FONT=Georgia]    VIP:[/FONT]
    [FONT=Georgia]        default: false[/FONT]
    [FONT=Georgia]        info:[/FONT]
    [FONT=Georgia]            prefix:[/FONT]
    [FONT=Georgia]            suffix:[/FONT]
    [FONT=Georgia]            build: true[/FONT]
    [FONT=Georgia]        inheritance:[/FONT]
    [FONT=Georgia]            - Default[/FONT]
    [FONT=Georgia]        permissions:[/FONT]
    [FONT=Georgia]##[/FONT]
    [FONT=Georgia]# maxsteele has control over all commands.[/FONT]
    [FONT=Georgia]# sk89q can use /spawn & /time[/FONT]
    [FONT=Georgia]##[/FONT]
    [FONT=Georgia]users:[/FONT]
    [FONT=Georgia]    user1:[/FONT]
    [FONT=Georgia]        group: Admins[/FONT]
    [FONT=Georgia]        permissions:[/FONT]
    [FONT=Georgia]    user2:[/FONT]
    [FONT=Georgia]        group: Admins[/FONT]
    [FONT=Georgia]        permissions:[/FONT]
    [FONT=Georgia]    user3:[/FONT]
    [FONT=Georgia]        group: VIP[/FONT]
    [FONT=Georgia]        permissions:


    I asked over in the WorldEdit plugin thread, in case that was where it was coming from, and the dev said it's not coming from WorldEdit. Any ideas?

    EDIT:

    I just realized I'm using verison 1.5 . This could very well have been corrected in later versions. I'll update to 1.8 and see if it still occurs.[/code][/FONT]
     
  8. Offline

    Rallerbabz

    Ichat is broken, any fixes available?
     
  9. It's only semi-broken. You need to add the following (default) line to its config.yml, then it will work:
    Code:
    message-format: '[+prefix+group+suffix&f] +name: +message'
     
  10. Offline

    achmed

    @Lim-Dul
    ok but I just saw there's a new plugin called ChatColors and it says you only have to download it and put a number or letter next to the prefix: like prefix: 7 isn't this just way easier?
     
  11. Depends whether you want easy or flexible.

    It would be impossible to set up my messages like I want them with that plugin. Also, you can mimic the above plugin's functionality in iChat too:

    Code:
    message-format: '<+prefix+name&f> +message'
    This will display the messages exactly as in ChatColors and you just need to add a single prefix in Permissions (with an "&" though, so i.e. &7).

    P.S. You COULD format the message as '<&+prefix+name&f> +message' and then just use numbers in Permissions' config.yml but that's not an elegant way of doing it, IMHO, color codes should be indicated as such through prefixes wherever they are used.
     
  12. Offline

    achmed

    @Lim-Dul
    ok but I've tried to find IChat but I couldn't find it can you post a link please?
     
  13. Offline

    Desereck

    @Lim-Dul It's completely broken. Won't even initialize for me.
     
  14. Offline

    PandaK551

    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(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:81)
    ... 8 more
    Caused by: while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 45, column 1:
    - 'essentials.node'
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:510)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceFirstEntry.produce(ParserImpl.java:502)
    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.composeSequenceNode(Composer.java:203)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    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.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: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

    Im using Essentials aswell, but I am not using Genera
     
  15. Offline

    achmed

  16. No, no, no! If it hasn't been created for you just make a text file and name it config.yml. Inside it you must paste a config line, like this:

    Default config:
    Code:
    message-format: '[+prefix+group+suffix&f] +name: +message'
    To mimic ChatColors:
    Code:
    message-format: '<&+prefix+name&f> +message'
    My example setup (to mimic the venerable DalaChat functionality, requires both a prefix and a suffix):
    Code:
    message-format: '[+prefix&f] <+suffix+name&f> +message'
     
  17. Offline

    anklesneeze

    BTW it took me 2 hours to figure out that permission for general item command is - 'general.items' . 'i' and 'give' didnt work for me.
     
  18. Offline

    achmed

    @Lim-Dul
    ok so there's another problem (wow I have lots of problems...).
    I have changed my permission file a lot of times and still it doesn't work.
    about 3 people tried to help me with it but I just can't get it too work can you see what's wrong?
    http://pastebin.com/SxGh8tyJ.
    EDIT:
    By the way thank you for helping me with all this.
    DOUBLE EDIT:
    I'm unsure if installed the permissions folder right it is supposed to be in the plugins folder with all the .jar files right?
     
  19. Offline

    Jobsti

  20. Your prefixes are not in single quotes. Put them like 'c', for instance.
     
  21. Offline

    achmed

    @Lim-Dul
    can this one thing make the whole file not work?
    and about installing the Permissions folder it is supposed to be in the plugins folder with all the .jar files right?
     
  22. Yes and yes.
    YAML (and Nijikokun's parsing of it) follows strict markup guidelines and if you have errors, the plugin will simply fail to load. Some people whine about it, I am actually glad it works that way because why would you have a half-assed, buggy config loaded that would lead to other problems...
     
  23. Offline

    MrHen

    I am getting a "java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z" error while starting up a server with Permissions installed. Pastebin contains full error and config file: http://pastebin.com/gWPSJgJM

    Any help is appreciated. :)
     
  24. Offline

    walton88

    I can't load iChat - I run /plugin load iChat but it says its not found and asks if I spelled it correctly. I tried restarting the server and more (such as different spellings / letter cases), but to no avail.
     
  25. Offline

    SectioN 8

    I'm using version 1.8 of permissions, and build 68 of Bukkit and 127 of craftbukkit. When I (or anybody) attempts to connect to the server, they either: Crash, timeout or get an error about connection. The console doesn't give me an error except for when a player, (such as myself) times out:
    http://filesmelt.com/dl/error5.png
    Removing the plugin fixes this error and I can connect again so I assume that it would be the plugin.

    General 2.0 appears to be conflicting with Permissions 1.8
     
  26. Offline

    Jobsti

    Huhu @Nijikokun

    I have a request:
    Can you add an option to set the time to spawn, so my users only can use /spawn every xx Minutes?
    Would be very useful for me.
     
  27. Offline

    0xdb

    If a username or group name starts with a number, it will need to be inside quotes. Took myself some time to figure out what the problem was, so I thought it would be worth a mention, sorry if it has been mentioned here before.

    Produced error:
    Code:
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
            at com.nijiko.permissions.Control.load(Control.java:112)
            at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permissions.java:132)
            at com.nijikokun.bukkit.Permissions.Permissions.onEnable(Permissions.java:111)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:285)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:60)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:45)
            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)
     
  28. Offline

    ShadowDrake

    I saw this asked at the beginning but that was a while ago.

    My default users do not seem to have access to any commands. The only permission that I set that works is - '*'

    I am using Essentials now... and a couple other addons that don't have commands. Primarily, I'm trying to get control of the essentials commands. Where am I going wrong?

    Edit: Heh I post then figure it out.

    Commands were prefixed 'general.(command)'

    They should be, when using essentials, 'essentials.command'

    Would have been nice to have this documented :p
     
  29. Offline

    Shay Williams

    Hey, I'm using the newest version of Permissions & Essentials.

    Everything is working great, but I can't seem to let anyone have access to the command '/tell' or any of it's mirrors. (I.E. /msg, /whisper)

    Could someone direct me as to how enable it as a permission? Or do I need a different plugin? Thanks.
     
  30. Offline

    Guardian9978

    I'm trying to get the command pr and/or permissionsreload to work I have tried the following:
    Code:
    Permissions.pr
    Permissions.permissionsreload
    permissions.pr
    permissions.permissionsreload
    /pr
    /permissionsreload
    
    I didn't see it in the first post. Can anyone help me out?
    All other commands I gave to users work just fine.
     
Thread Status:
Not open for further replies.

Share This Page