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

    craftopia.net

    Code:
    Jan 22, 2011 8:37:15 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.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: while parsing a block mapping
     in "<reader>", line 2, column 1:
        plugin:
        ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 46, column 4:
           Builder:
           ^
    
            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.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:
    77)
            ... 13 more
    2011-01-22 08:37:15 [INFO] Done! For help, type "help" or "?"
    I am running CraftBukkit 126 * BukkitMain 86

    The only plugin installed is Permissions. my YML is configured properly so far as I know.

    I have never been able to get this plugin, or GroupUsers to work.
     
  3. Offline

    Lookatmego

    to set lke a moderator for my server do i need to make a users every time..like

    usesrs:
    lookatmego:
    groups:moderator
    permissions?

    ik that not right just example but do i need to make a users everytime and stuff cuz everytime i add some 1 new it just takes away every command
     
  4. Offline

    mrgreaper

    Your an absolute star!!! thank you! now to figure out what i need to change the - 'homeset' etc to for the commands to work ...or do they work as is ?
     
  5. Offline

    bandit6789

    second this
     
  6. Offline

    Joseppi250

    ok did i do something wrong http://www.pastebin.com/wSsWTda4 i can't get it to work every one was able to use all commands or i end up not being able to use any commands.
     
  7. Offline

    adamjon858

    Is there anyway to edit the permissions from on the server instead of editing the file everytime...I want to be able to have my moderators give people build access without having to give them SSH access to modify the config file.
     
  8. Offline

    Mhalkyer

  9. Offline

    majorcyto

    iChat currently has no settings thats why its blank its what Niji said in livestream, You need to install iChat only if you plan on using Prefix and Suffix options in Permissions.
     
  10. Offline

    ddoolin

    Yeah, I'm getting a plugin load error like craftopia.net.

    Lastest CBukkit.
     
  11. Offline

    drampelt

    I don't quite understand how chat prefix's work. I have tried:
    prefix: [Admin]
    prefix: '[Admin]'
    and
    prefix:
    - '[Admin']

    How do you set this part up?
     
  12. Offline

    Timberjaw

    See the onPlayerCommand method in this file for my implementation: https://github.com/Timberjaw/SpawnC.../timberjaw/spawncontrol/SCPlayerListener.java
     
  13. Offline

    drampelt

  14. Offline

    Mysteryem

    drampelt, look at the spacing for the example users, I'm pretty sure you need to follow that spacing when adding yourself or any other user.
     
  15. Offline

    subarct1c

    It would seem users with a name that contains all numbers produces an error like the following:

    Code:
    SEVERE: java.lang.Integer cannot be cast to java.lang.String (Is it up to date?)
    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)
    
    The section of the config that seems to be causing it:

    Code:
        1209348756:
            group: Resident
    Is there a way of fixing this or is it a bug in the plugin that needs to be fixed?
     
  16. Offline

    Tendonsie

    If I use the official file, and I ONLY Change the name of the admin, to my name.
    And then I start de server. I doesn't work.

    (De normal config file with only one user word changed...)
    Whats wrong?
     
  17. Offline

    lawina

    Can someone please explain me if it's possible to remove the annoying [ADMIN] or [MODERATOR] or whatever prefix in front of chats?
     
  18. Offline

    Tendonsie

  19. Offline

    Jawdan

    Yeah I currently have Permissions and Essentials installed and I cannot even use any commands I am assigning to the default group at all. Every time it says I don't have permissions.

    Permissions code;
    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:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        darkgrave:
            group: Admins
            permissions:
        sk89q:
            group: Default
            permissions:
                - 'general.time'
    Essentials code;
    
    Code:
    # Do not move, modify, or erase this line.
    version: 40
    #command-prefix: 'g'
    nickname-prefix: '~'
    default-stack-size: 64
    motd:
      - '&aWelcome, &b{PLAYER} &fto igRP!'
      - '&fPlease visit &dillusionarygamers.com/clan &fin the &dminecraft forums &ffor a list of &drules! &fType &bhelp &ffor a list of commands.'
    
    disable-tp: true
    disable-tele: false
    disable-tphere: false
    disable-telehere: false
    disable-s: false
    disable-item: false
    disable-i: false
    disable-give: false
    disable-g: false
    disable-list: false
    disable-playerlist: false
    disable-who: false
    disable-online: false
    disable-home: false
    disable-sethome: false
    disable-mail: false
    disable-helpop: false
    disable-clearinventory: false
    disable-getpos: false
    disable-coords: false
    disable-nick: true
    disable-whois: false
    disable-realname: false
    disable-realnick: false
    disable-spawn: false
    disable-setspawn: false
    disable-tree: false
    disable-bigtree: false
    disable-top: false
    disable-time: false
    disable-kit: false
    disable-plugin: false
    disable-help: false
    disable-heal: false
    disable-motd: false
    disable-ban: false
    disable-kick: false
    disable-unban: false
    disable-pardon: false
    disable-banip: false
    disable-unbanip: false
    disable-pardonip: false
    
    # Restricted commands will only be available to ops.restrict-tp: true
    restrict-tele: true
    restrict-tphere: true
    restrict-telehere: true
    restrict-s: true
    restrict-item: true
    restrict-i: true
    restrict-give: true
    restrict-g: true
    restrict-list: true
    restrict-playerlist: false
    restrict-who: true
    restrict-online: true
    restrict-home: false
    restrict-sethome: false
    restrict-mail: false
    restrict-helpop: false
    restrict-clearinventory: true
    restrict-getpos: false
    restrict-coords: true
    restrict-nick: true
    restrict-whois: true
    restrict-realname: true
    restrict-realnick: true
    restrict-spawn: false
    restrict-setspawn: false
    restrict-tree: true
    restrict-bigtree: true
    restrict-top: true
    restrict-time: true
    restrict-kit: true
    restrict-plugin: true
    restrict-help: false
    restrict-heal: true
    restrict-motd: false
    restrict-ban: true
    restrict-kick: true
    restrict-unban: true
    restrict-pardon: true
    restrict-banip: true
    restrict-unbanip: true
    restrict-pardonip: true
    
    # 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
      glass:
        - 20 64
        - 20 64
        - 20 64
    
     
  20. Offline

    Jinux

  21. Offline

    Hakon

    I can't get this thing to work. I have set default to true, and build to false, and Iam not member of any group, but I still not blocked from building. I have also installed General (Essential) with default settings.

    Is there something wrong, or is it just me that don't get this?

    Edit: I'am using the default config file, only with these two changes described earlier.
     
  22. Offline

    s0nge

    can anyone send me their working GENERAL and Permisson config files?
     
  23. Offline

    fugue2005

    does anyone have a working
    you have most of those commands restricted to ops, is your username in ops.txt?
     
  24. Offline

    Kainzo

    a posted 'sample' with the most popular plugins would kick-ass.
     
  25. Offline

    xZise

    Hello,
    I get following exception, when it load this permissions:
    Code:
    22.01.2011 20:23:01 org.bukkit.plugin.SimplePluginManager loadPlugins
    SCHWERWIEGEND: 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: mapping values are not allowed here
     in "<reader>", line 50, column 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:564)
            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: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
    22.01.2011 20:23:01 org.bukkit.craftbukkit.CraftServer loadPlugins
    SCHWERWIEGEND: com/nijiko/Messaging (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijiko/Messaging
            at me.taylorkelly.mywarp.MyWarp.onEnable(MyWarp.java:46)
            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)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.Messaging
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 11 more
    Sincerely
    xZise
     
  26. Offline

    joshcvb

    I will be posting mine very shortly with all the plugins that work for this. I currently have quite a few users so its long but it works

    CB # 121
     
  27. Offline

    Jawdan

    Tis cannot use them even when I op myself. But I want them available for general users.
     
  28. Offline

    NobodyOfNaught

    Are permission inheritance suppose to be cumulative?

    IE in this example Moderator inherits VIP inherits Regular inherits default, however my moderators cannot /spawn which is assigned to default.
    http://pastebin.com/vLyMDmms
     
  29. Offline

    Joseppi250

  30. Offline

    DoritosMan

  31. Offline

    McSpuds

    I have Permissions and General running on CB #126 with the following plugins also working:
    note: I have user individual permissions working as well.

    Permissions v1.7
    General v1.9
    EWhitelist v1.2 (custom plug written for me by one of my mods)
    Guardian v1.2
    Guilds 1.2 (Thank You Toi!, AWESOME plug replaces towny)
    BorderGuard v2.0

    I will be loading later to day:

    iChat
    WarpGate
    iStick

    I do know that CreeperNerfTnT plugin will crash permissions and general.

    @Nijikokun, I think that was our problem last night! The creepernerftnt.jar was already there, so it would have messed us up like we where getting. When I wiped the server and did a fresh install of everything I did it one plug at a time. When I got to CreeperNerf it crashed us. Strange that it did not show in the log though....
    --- merged: Jan 22, 2011 7:57 PM ---

    You have everyone listed as a Mod or Admin.... make them defaut users if you want them to have restrictions.
     
Thread Status:
Not open for further replies.

Share This Page