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

    @matter123 this code here will load permissions with no errors but as for the nodes i'll leave that to you lol

    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:
        guest:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - '/who'
                - '/gc'
                - '/ex'
                - '/help'
                - '/sethome'
                - '/home'
                - '/spawn'
                - '/me'
                - '/msg'
                - '/kit'
                - '/playerlist'
                - '/warp'
                - '/motd'
                - '/compass'
                - '/tell'
                - '/m'
                - '/who'
                - '/money'
                - '/shop'
                - '/auction'
                - '/lottery'
                - '/sign'
                - '/fabulous'
        builder:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - guest
            permissions:
                - '/chestprotect'
                - '/time'
                - '/time day'
                - '/time night'
                - '/magictorch'
        citizen:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - builder
            permissions:
                - '/ban'
                - '/banip'
                - '/heal'
                - 'general.time'
        mods:
            default: false
            info:
                prefix: '&b<mod>'
                suffix:
                build: true
            inheritance:
                - citizen
            permissions:
                - '/airship'
                - '/aircraft'
                - '/boat'
                - '/ship'
                - '/ufo'
                - '/bomber'
                - '/movecraft'
                - '/search'
                - '/pushblocks'
                - '/god'
                - '/gc'
                - '/protect'
                - '/griefalert'
                - '/doNotTriggerAlerts'
                - '/ignoreDenies'
                - '/item'
                - '/tp'
                - '/tphere'
                - '/s'
                - '/i'
                - '/give'
                - '/setwarp'
                - '//drain'
                - '/thru'
                - '/ascend'
                - '/descend'
                - '/fixwater'
                - '/fixlava'
                - 'general.items'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        admin:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - mods
            permissions:
                - '*'
        owner:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - mods
            permissions:
                - '*'
                - 'worldEdit'
    ##
    # DarkGrave has control over all general commands.
    # sk89q can use /spawn & /setspawn
    ##
    users:
        matter123:
            group: owner
            permissions:
        beachbum1212:
            group: owner
            permissions:
        clueless42222:
            group: mods
            permissions:
        springrolls:
            group: mods
            permissions:
        retyu:
            group: mods
            permissions:
        thefireball0321:
            group: mods
            permissions:
        brookln:
            group: mods
            permissions:
        bepoplay:
            group: mods
            permissions:
        pkr1rama7:
            group: mods
            permissions:
        bomber577:
            group: mods
            permissions:
        chax1234:
            group: builder
            permissions:
        genexcontrol:
            group: builder
            permissions:
        werzieq:
            group: citizen
            permissions:
        cheesewad:
            group: mods
            permissions:
        fin119:
            group: builder
            permissions:
        venupowuh:
            group: builder
            permissions:
        bnndy:
            group: citizen
            permissions:
        skater_llama:
            group: mods
            permissions:
        spassy:
            group: builder
            permissions:
        legix:
            group: citizen
            permissions:
        najca:
            group: citizen
            permissions:
        kevinkoza:
            group: builder
            permissions:
        amadran:
            group: citizen
            permissions:
        sirlego:
            group: citizen
            permissions:
        j33t:
            group: mods
            permissions:
        levodicus:
            group: citizen
            permissions:
        tigrr:
            group: builder
            permissions:
        chickinsoup1:
            group: mods
            permissions:
        sofakingawesome:
            group: builder
            permissions:
        bandoslord:
            group: builder
            permissions:
        tempus_redux:
            group: citizen
            permissions:
        nakota5:
            group: mods
            permissions:
        thecammandor:
            group: mods
            permissions:
        axman549:
            group: mods
            permissions:
        raykahn:
            group: builder
            permissions:
        numero:
            group: builder
            permissions:
        sith121:
            group: mods
            permissions:
        blueeyes55555:
            group: builder
            permissions:
        skyler482:
            group: builder
            permissions:
        rqbzore:
            group: builder
            permissions:
        tor_destroyer:
            group: citizen
            permissions:
        zzz111:
            group: builder
            permissions:
        whyku:
            group: mods
            permissions:
        ninosmr:
            group: builder
            permissions:
        apuginatux:
            group: citizen
            permissions:
        trickassbitch:
            group: default
            permissions:
        laramis:
            group: builder
            permissions:
        zackxj:
            group: builder
            permissions:
     
  3. Offline

    xZise

    @chil1977: What are your changes? So he know what he did wrong.

    Fabian
     
  4. Offline

    chill1977

    LMAO OK ,ummm I think this one was just a space suffix: 'something' for matter123
     
  5. Offline

    xZise

    And I want to make a suggestion, to check if the value is set and to define own default values like this:
    Code:
    handler.hasIntegerPermission(Player player, String permission)
    handler.getIntegerPermission(Player player, String permission, int default)
     
  6. Offline

    chill1977

    Sry if I havent been telling everyone what the problems are but I have been doing 50-60 of these per day for the past 3 days, half of the time I have 3 or 4 codes open at 1 time with people convoing me so there is no way by the time I post it I know what I did to whose, I just know they now work lol
     
  7. Offline

    Kekec852

    Could you add somthing for excluding rights. Example I would like to grand all permissions but one.
     
  8. Offline

    LolRiTTeR

    Sorry if somebody already postet the answer or whatever, i just post my question :)

    If i start my Server, the Permission System wont work.. Here the Error-Message:
    http://pastebin.com/XDCYa2VB

    Here my config file:
    http://pastebin.com/Rnbi4Kwm

    What can i do? I already saw that something is with the Essentials Plugin, but please explain it to me, so that everyone can understand it :D


    Thanks!
    - LolRiTTeR
     
  9. Offline

    chill1977

    Th
    is has been asked many many many times and I'm sure Nijikokun will do it when it is possible.
    --- merged: Jan 30, 2011 11:33 PM ---
    Update to Essentials 131, CRaftbukkit 174 and permissions as Essentials build 130 broke the Permissions inheritance. Other than that i'm not trying to read that reparsed code lol the Parser says it is good lol
     
  10. Offline

    loothelion

    Well I looked over my code from earlier fixed it up a bit yet I'm still getting errors in the parser with no readable feedback.
    Code:
    ERROR:
    
    while parsing a block mapping
      in "<unicode string>", line 1, column 1:
        plugin:
        ^
    expected <block end>, but found '<block mapping start>'
      in "<unicode string>", line 27, column 5:
            Admins:
            ^
     
  11. Offline

    xZise

    What is now your permissions file?

    Fabian
     
  12. Offline

    LolRiTTeR

  13. Offline

    xZise

    Go to the articats tab and choose there the craftbukkit jar.

    Fabian
     
  14. Offline

    Jobsti

    Not working since ~172.
    Build #182:

    No ConsoleErrors on Serverstart... No command is working, if I type /spawn:
    PHP:
    31.01.2011 00:47:33 org.bukkit.plugin.SimplePluginManager callEvent
    SCHWERWIEGEND
    Could not pass event PLAYER_COMMAND to General
    java
    .lang.NoSuchFieldErrorm
            at com
    .nijikokun.bukkit.General.iListen.spawn(iListen.java:69)
            
    at com.nijikokun.bukkit.General.iListen.onPlayerCommand(iListen.java:363)
            
    at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.java:133)
            
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:584)
            
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:557)
            
    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)
    2011-01-31 00:47:33 [INFOJobsti issued server commandspawn
    2011
    -01-31 00:47:33 [INFOUnknown console commandType "help" for help.
     
  15. Offline

    chill1977

    I would love to tell you what was wrong but I have no idea. I had to rewrite it several times to get it to take. Maybe the paper was wrinkled. But now it works.

    Code:
    plugin:
        permissions:
            system: default
    
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'essentials.me'
                - 'essentials.tpahere'
                - 'essentials.warp'
                - 'essentials.mail.*'
                - 'essentials.helpop'
                - 'essentials.spawn'
                - 'essentials.kit.*'
                - 'essentials.help'
                - 'essentials.motd'
                - 'essentials.afk'
                - 'essentials.ping'
                - 'essentials.rules'
                - 'essentials.compass'
                - 'essentials.depth'
        Admins:
            default: false
            info:
                prefix: '[ADMIN]'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - '*'
    
    users:
        timeser:
            group: Admins
            permissions:
        loothelion:
            group: Admin
            permissions:
     
  16. Offline

    LolRiTTeR

  17. Offline

    chill1977

    Could you be more specific on what's not working? I have tested and just retested to confirm Craftbukkit 174 , Essentials 131, Permissions, iChat, and Antibuild are fine.
     
  18. Offline

    uncovery

     
  19. Offline

    loothelion

    Hmm that was odd but it works now so, thank you!
     
  20. Offline

    chill1977

    You are trying to load too many plugins that are not updated for Craftbukkit 174. Clean out your plugins and start with just craftbukkit. If that loads fine the add permissions and essentials and reload. Then keep going with 1 plugin at a time until you find the ones that will not work.
    --- merged: Jan 31, 2011 12:01 AM ---
    Well i did add quotes around the prefix: '[Admin]' but still had errors after that and had to rewrite the users several times, maybe a space or something i didnt see
     
  21. Offline

    uncovery

    thanks!!
     
  22. Offline

    Jobsti

    Oh, I have this to post on the General topic ;)
     
  23. Offline

    LolRiTTeR

    Okay, thanks

    Not, or maybe working plugins, but errors in console:
    - Essentials
    - Permissions
    - MineCartMania
    - iConomy
    and ShopSystem - There comes some errors because iConomy is not loaded.

    Code:
    SCHWERWIEGEND: Could not pass event PLAYER_COMMAND to SimpleShop
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/iConomy/iConomy
            at com.nijikokun.bukkit.SimpleShop.iListen.get_balance(iListen.java:53)
            at com.nijikokun.bukkit.SimpleShop.iListen.onPlayerCommand(iListen.java:
    68)
     
  24. Offline

    chill1977

    ALERT: DO NOT UPDATE CRAFTBUKKIT PAST BUILD 169 as of writing. The block damage hook is returning ERRONEOUS coordinates, breaking ALL REGION PROTECTION IN WORLDGUARD. However, if you upgrade to build 169 or later, you must also update WorldGuard or commands will NOT work.

    Looks like sk89q is creating himself more problems than anyone else lol.
     
  25. Offline

    LolRiTTeR

    Was that to me? xD

    I downloaded WorldEdit and WorldGuard today, so i think i got the last update from it.


    I'll try to downgrade craftbukkit to 169 again :O
     
  26. Offline

    monsieurD

    i get
    30-Jan-2011 7:23:01 PM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: com.nijikokun.bukkit.Permissions.Permissions.getHandler()Lcom/nijiko/pe
    java.lang.NoSuchMethodError: com.nijikokun.bukkit.Permissions.Permissions.getHa
    at com.bukkit.fouram.QuickPort.QuickPort.onEnable(QuickPort.java:62)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoade
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManag
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:64)
    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:181)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    with new bukkit and essential, any help?
     
  27. Offline

    LolRiTTeR

    This is not the full code.

    Try to copy everything ^^


    - LolRiTTeR
     
  28. Offline

    Arcen1k

    My configuration does not fully work. So far none of the spawn commands or anything really work. It gives a "SEVERE" "Could not pass event PLAYER_COMMAND to General" error when I try to use many of the spawn commands. Here are my configurations:

    Permissions
    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,
    ##
    #  The asterisk must be placed inside double quotes to prevent errors.
    #  like so:
    #
    #      - 'com.permission.nijiko.*'
    #
    #  Otherwise errors will happen!
    ##
    groups:
        Default:
            default: true
            inheritance:
            permissions:
              - 'general.spawn'
              - 'godmode.god.self'
        Moderators:
            default: false
            info:
                prefix: MOD
            inheritance: Default,
            permissions:
              - 'general.time'
              - 'general.teleport'
              - 'general.teleport.here'
              - 'godmode.*'
        Admins:
            default: false
            info:
                prefix: ADMIN
            inheritance: Default,Moderators,
            permissions:
              - '*'
    
    users:
        arcen1k:
            group: Admins
            permissions:
    General
    Code:
    # Configuration for General
    #   - DarkGrave 2011
    #
    # About editing this file:
    # - DO NOT USE TABS. You MUST use spaces or Bukkit will complain. If
    #   you use an editor like Notepad++ (recommended for Windows users), you
    #   must configure it to "replace tabs with spaces." In Notepad++, this can
    #   be changed in Settings > Preferences > Language Menu.
    # - Don't get rid of the indents. They are indented so some entries are
    #   in categories (like "show-coords" is in the "playerlist"
    #   category.
    # - If you want to check the format of this file before putting it
    #   into General, paste it into [URL]http://yaml-online-parser.appspot.com/[/URL]
    #   and see if it gives "ERROR:".
    # - Lines starting with # are comments and so they are ignored.
    #
    # Player list user information.
    playerlist:
        show-coords: true
        show-health: true
    # Allows you to keep a sane general.help without it being overwritten.
    help:
        inject-commands: false
    THANKS!
     
  29. Offline

    LolRiTTeR

    Nobody got a Idea for my/our Problems? :D

    Please help :>
    - LolRiTTeR
     
  30. Offline

    chill1977

    General forum question.
    --- merged: Jan 31, 2011 1:01 AM ---
    You can try to download CraftBukkit 183, Essentials 131 and permissions and then see if it will load. With nothing else, just those 3. I just loaded those 3, antibuild and ichat with no errors or problems. See if you can do the same. If you can then add worldguard and worldedit as they are supposed to be halfway (meaning they have no region protection but the commands should work).
     
  31. Offline

    LolRiTTeR

    Downloaded CraftBukkit 183 - 'Installed'..
    Downloaded Essentials 131 - .. Installed
    Downloaded last Permissions Plugin .. Installed

    ONLY Essentials and Permissions Plugin is loaded, notthing else.. And again this errors

    Code:
    31.01.2011 02:05:58 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.j
    ava:78)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:82)
    It can't even load the Plugin.. :/


    I cant get it what this means :eek:
    Caused by: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 1616

    - LolRiTTeR
     
Thread Status:
Not open for further replies.

Share This Page