Inactive [ADMN/DEV] Permissions v2.7.4 (Phoenix) - DISCONTINUED! 3.0 has a new home!

Discussion in 'Inactive/Unsupported Plugins' started by TheYeti, Feb 25, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    TheYeti

    Permissions 2.7.4 (Phoenix) - Now with AntiBuild built in!
    Download:
    Latest Stable: Full Zip | Jar Only
    Latest Dev Build: Full Zip | Jar Only
    Previous Versions: 2.7.3 (JAR) | 2.7.2 (JAR) | 2.7.1 (JAR) | 2.7 (JAR) | 2.6 (JAR) | 2.5.5 (JAR) | 2.5.4 (JAR) | 2.5.3 (JAR) | 2.5.2 (JAR) | 2.5.1 (JAR) | 2.5 (JAR) | 2.4 (JAR) | 2.3 (JAR) | 2.2 (JAR)

    Plugin Authors: How to hook into Permissions

    Permissions 2.x is being discontinued! 3.0 can be found HERE!!!


    I am discontinuing Permissions 2.x and leaving the project. Permissions is not going away though! Since 2.6 I have been working closely with another developer and added them to the team. For the past several version they have not only been assisting with 2.x but also doing a lot of the development of much anticipated 3.x. rcjrrjcr will be taking over as lead developer of Permissions from 3.x forward. I have full faith in them and after working closely with them on the development on the last few version and the next major version I feel that I am leaving this project in more than capable hands. I put way to much work into this project to just leave it with anyone, and this is one of the few programs that I am incredibly proud of.

    Many people will probably wonder why I am leaving again after taking over the project just a few months ago. I could quote drama and headaches, of which there were quite a few with this project. Unfortunately real life happens. Many people already know that I have been having medical issues here lately. Unfortunately while they have gotten better, they have not gone away. This coupled with other real life commitments, going to school full time, and starting up my own company, I am currently in the process of being laid off from work. At this point I have so much stuff going on in my life and am being pulled in so many directions that I am not able to get any work done on anything. This has lead to me missing commitments and letting people down on multiple things.

    Permissions is also a very high maintenance plugin that requires a lot of attention and time. Right now I am not able to devote that time and do not feel it is fair for me to try to continue to be the lead developer on it. I had originally thought that adding other members to the team would be helpful, but unfortunately this just lead to frustration for them and myself as I just was not able to commit to the project enough. Hence, 3.0 has been rewritten almost exclusively by rcjrrjcr with minimal contributions by myself.

    At this point I will be stepping away from the project to focus more on real life and to try to free up some time for other projects and to work with more individual like the wonderful HeroCraft Coding team to fulfill some commitments that I made to them a long time ago and sadly did not come through on. I feel that this is the best for all involved, both myself and the other Permissions developers, as well as the community who deserve someone who can contribute more time and attention to them and supporting them. I do not want to see Permissions end up like many other plugins with an absentee programmer and just slowly wasting away from a great plugin with a lot of potential to a headache with no support.

    I will still be active in the community, just not as much as not in the same way. I'm sure my server will be more than happy to have their head admin back and active again as well.

    Thank you and happy gaming.




    Changelog
    • 2.7.4
      • Added overload of has() and permissions() for plugin devs
    • 2.7.3
      • Fixed negate node add/remove bug.
    • 2.7.2
      • Fix for small subtle bug introduced in last minor version.
    • 2.7.1
      • Commit by DThielke to fix several bugs with programmatic modifications of user permissions.
    • 2.7
      • Further commits by rcjrrjcr
        • Removed negatedNode checks
        • Temp fix for NULL issue
        • WorldConfigurationModification to save only modified configs
        • Fix for cache problems
    • 2.6
      • Pulled in commits by rcjrrjcr
      • Fixed versioning. Last version should have technically been 2.6
      • Fixed invalid config file being written
      • Fixed erroneous conversion message.
    • 2.5.5
      • Updated to be compliant with CB600+
      • Further Maven Integration and Autobuilding
      • Better handling of configuration file errors.
        • If you do not have a world config file for the default world at startup it will now look for config.yml
        • If it cannot find that it will look for world.yml instead in case you named it that when that is not what is in level-name:
        • It will rewrite the config file to be the proper name. At this time it does not delete the old one though.
      • Removed defunct public abstract calls. If your not using the right one by now you should be shot anyway.
    • 2.5.4
        • Added Command aliases for perms and pr
        • Changed the way directories are handled.
        • Stopped it from creating an empty <world>.yml file in base directory
        • Moved project to using Maven.
    • 2.5.3
      • Change from File.pathSeparator to File.separator to fix multiworld perms
    • 2.5.2
      • Added more instructions to the included config file within the plugin
      • Added a check that will use the default world permissions if a world specific config file cannot be found.
      • Added a function to get only the group that a player is assigned to without checking for group inheritance.
      • Added a change to colorize() to fix it hopefully not adding an extra unneeded ascii character and thus creating a linebreak/color switch issue
      • Removed permissions.info as it was not needed and was a artifact of testing I was doing.
    • 2.5.1
      • Fixed a bug that could cause a group to be returned as null for getGroups()
    • 2.5
      • Added in AntiBuild functionality to Permissions
      • Minor code tweaks
      • Added getGroups(world, player) to PermissionHandler so that plugins can call it to get all of a users groups
      • Fixed the inability to use the permissions -reload all command from within the console. I still need to do some more work on this as it doesn't seem to like to accept anything other than all from console.
    • 2.4
      • Refactored namespaces to keep in line with Java & Bukkit policy
        • This was cancelled as it ended up being not needed
      • Fixed setupPermissions()
    • 2.3
      • Undid removal of some code that I had overzealously purged during cleanup
      • Merged in last of Nijikokun's changes
      • Re-ordered the main class to attempt to fix the problems with Plugin API
    • 2.2
      • Developer change
      • Fixed reloading of configuration files
      • Moved commands to registering with plugin.yml
      • Commands now use onCommand instead of onPlayerCommand
      • Command is now /permissions instead of /pr
    [/SPOILER]
     
    mruczek, kahlilnc, Pii and 58 others like this.
  2. Offline

    Alpha

    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    # Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    # If this file is for your default world (the one in server.properties) then you must
    # leave copies blank.
    # Example: copies: Derp - This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name. So if it is level-name: world then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document. Use only spaces. A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
    permissions:
    - SpawnControl.sethome.basic
    - SpawnControl.sethome.proxy
    - SpawnControl.home.basic
    - SpawnControl.spawn.use
    - SpawnControl.spawn.set
    - SpawnControl.groupspawn.use
    - SpawnControl.groupspawn.set
    - SpawnControl.config (for /sc_config [setting] [value])
    - SpawnControl.import
    system: default
    copies:

    ##
    # AntiBuild is included with this. To disable a group from being able to build then
    # set the build: flag to false (build: false). If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    # To make a group inherit the permissions from another
    # group simply place the groups name in the "inheritance:" like so:
    #
    # Example:
    # inheritance:
    # - Default
    ##
    # All permissions including the asterisks must be placed in single quotes.
    # like so:
    #
    # - 'foo.bar'
    #
    # Otherwise errors will happen!
    ##
    # Globalized Permission settings:
    #
    # If a permission contains periods (.) you can denote a globalized parameter:
    #
    # - 'foo.*'
    #
    # This will allow you to use all general commands.
    #
    ##
    # Single Asterisk denotes all commands:
    #
    # - '*'
    # If you give a group this permissions, do not have the group inherit any permissions
    # from other groups. Any users assigned to this group should NOT be given any additional
    # permissions either.
    ##
    # To exempt a node use the - prefix like so:
    # - '-foo.bar'
    ##
    # prefix: and suffix: do not do anything on their own. You need another outside plugin
    # such as iChat or HeroChat in order for these to do anything.
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance:
    permissions:
    - 'foo.bar'
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'

    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
    Alphakid16:
    group: Admins
    permissions:
    - '*'
    Herpina:
    group: Moderator
    info:
    prefix: 'Moo'
    suffix: 'Cow'
    permissions:
    - 'herp.derp'
    Derpina:
    group: Admins
    permissions:
    - '-derp.derp'


    My Permissions doesn't look right. Is there anything wrong with it?
     
  3. Offline

    saturnine_nl

    hmmm i'm running out of options here
    other question: is the worldfolder monde1 inside another folder ?
    if you have a put_here_the_minecraftworlds folder inside your main bukkit
    and in that folder you have monde1 monde and other worlds the permissions plugin cannot find these ...
    [MERGETIME="1299876757"][/MERGETIME]
    @Alpha : you're so called overloading

    users:
    Alphakid16:
    group: Admins
    permissions:
    - '*'

    remove the - '*' and you'll be fine
    you already get the '*' from your admin group so no need to get it twice
    this is called overloading
     
  4. Offline

    Halfman

    Here is the content of my server.properties file :
    Code:
    server-ip=******
    server-port=25565
    max-players=8
    level-name=/maps/monde
    motd=Bienvenue sur MotionCraft
    rcon_password=******
    admin-slot=true
    grow-trees=true
    hellworld=false
    max-connections=3
    online-mode=true
    public=false
    pvp=false
    server-name=MotionCraft
    spawn-animals=true
    spawn-monsters=false
    spawn-protection=16
    verify-names=true
    
    white-list=false
    If it can help you...

    I just completly reinstall the server and same errors...
     
  5. Offline

    Alpha


    Ok but is the rest right?
     
  6. Offline

    saturnine_nl

    NO !! wait i see the problem AND I know the solution

    in permissions folder make a folder maps

    in maps place monde.yml

    and it should work.
    [MERGETIME="1299877226"][/MERGETIME]
    that set would give you full access to all plugin commands
    so yes it looks right :)
     
  7. updated evrything the renameme document changed if you have essentials delete bridge and groupemanager and reboot evrything twice and than started the server :)
     
  8. Offline

    saturnine_nl

    groupmanager and permissions don't like eachother ... I think both are great but not if you put them together :D
     
  9. Offline

    Halfman

    Okay... Thanks but it works partially.

    Now i got
    And everyone have the OPs commands on the server :s.
     
  10. Offline

    saturnine_nl

    in file ops in main bukkitfolder remove everybody you don't want to have ops rights
    if you download essentials chat plugin you can use the prefix suffix ...
     
  11. Offline

    Halfman

    In the ops.txt file there is only me and my friend (the only two admins I want).

    And for prefix/suffix I have iChat ? But the error is still here :(.
     
  12. Offline

    saturnine_nl

    ow i think ...

    in your permissions.yml do you have a group with default : true
    and (most important) does this group have a node called prefix:
    and a node called suffix:
    it has to be just like with the rest of the groups. because ichat expect a pre/suffix

    also if there are more users then you and your friend you could add them in another group with other rights, i remember you had a group mods , you could make them member of that group and add the permission plugin rules you would like to have them.
     
  13. Offline

    Halfman

  14. Offline

    ViralNihility

    Any insight on to what could be causing this?
     
  15. Offline

    saturnine_nl

  16. Offline

    ViralNihility

    I found no typos other than an additonal space (5 instead of 4) which was below where the error was located.


    When using a YAML converter, I get this:
     
  17. Offline

    saturnine_nl

    if group admin is on column 9
    permissions should be on column 13 at least.
    just add a few more spaces and it should be ok
     
  18. Offline

    audhen

    Code:
    00:29:10 [SCHWERWIEGEND] Could not load plugins/Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:113)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:205)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:196)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:381)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:366)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.VerifyError: (class: com/nijikokun/bukkit/Permissions/Permissions, method: setupPermissions signature: ()V) Bad type in putfield/putstatic
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:264)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
            ... 11 more
     
  19. Offline

    Projectleeroy

    My question was never answered...

    You had on there before mySQL support comming soon but its not there anymore?

    Are you not gonna support mySQL or are you going to add this feature so servers like ours can create a panel or a button on player applications to accept them automatically without having to download and upload the file a billion times?
     
  20. Offline

    Malkierian

    This. I've noticed that the first time I start my server (meaning with a fresh upload of Permissions.jar) it works just fine, but on any subsequent restarts of the server, it fails with these messages. This is especially important to me because I can't seem to get Permissions 2.1 to work...
     
  21. Offline

    korin125

    Ok I need some major help here. What does it mean if I am not getting errors, but EVERY command I try say I do not have permissions to do that.

    I think the file is alright cause I spent days just trying to do that, but this just started happening a while ago and I don't know why. It was working before.

    Please help.
     
  22. Offline

    yeahMan

    Whats the command for modgrp now? modgrp doesn't appear to work anymore or something? (updated from 2.0-->2.5.4) I tried reloading after using "/modgrp name group" but no luck.
     
  23. Offline

    Mrjibidi

    What should be the of my YML file in the permissions File. Should it be the same as my servers name or config???
    Cuz when its called my server, some of the plugins wont work and when its called config, Nobody can use any commands ingame.
     
  24. Offline

    spelmyst

    You'll have to forgive me if I'm a bit pissy about this. I've pissed away 3 hours of my life looking for a way to add the github files from "TheYeti-Permissions-v2.5.4-0-ge9b91b2.zip" to a project, so I can use Permissions. Nothing is working.

    Is there anyone around, who is capable of explaining how to setup Eclipse, to use Permissions?

    The bukkit snapshot is setup as a referenced library, but no problem.
     
  25. Offline

    fugue2005

    no ingame commands?
     
  26. Offline

    Halfman

    No solutions for my problem ?

    Everyone is op it is difficult to manage a server in these conditions :s.
     
  27. Offline

    nissehutt

    It doesnt work for me. When someone breaks a block I get this in the console: "could not pass event BLOCK_BREAK to permissions". Also when I place a block I get "could not pass event BLOCK_PLACE to permissions".
    Im using bukkit #493 with Permissions 2.5.1
     
  28. Offline

    Miauw62

    Code:
    12:55:30 [INFO] Starting minecraft server version Beta 1.3
    12:55:30 [INFO] Loading properties
    12:55:30 [INFO] Starting Minecraft server on 5.177.191.45:25565
    12:55:30 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-
    gdf87bb3-b531jnks (MC: 1.3)
    12:55:30 [INFO] Preparing level "world"
    12:55:30 [INFO] Preparing start region
    12:55:31 [SEVERE] Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:113)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:159)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:107)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    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:109)
            ... 8 more
    Caused by: while scanning a simple key
     in "<reader>", line 90, column 5:
            miauw62
            ^
    could not found expected ':'
     in "<reader>", line 91, column 15:
                 group: Admins
                      ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(Scanne
    rImpl.java:400)
            at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.jav
    a:231)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    2)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(
    ParserImpl.java:510)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceFirstEntry.pro
    duce(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.jav
    a: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: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:73)
            at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    82)
            ... 13 more
    12:55:31 [INFO] ChatBukkit v0.0.1 is enabled!
    12:55:31 [INFO] [FalseBook Block] ERROR: No Plugin found to handle Permissions!
    12:55:31 [INFO] [FalseBook Block] FalseBookLift will be disabled!
    12:55:31 [INFO] [FalseBook Cart] Settings successfully loaded.
    12:55:31 [INFO] [FalseBook Cart] ERROR: No Plugin found to handle Permissions!
    12:55:31 [INFO] [FalseBook Cart] FalseBook Cart 0.64alpha by GeMo will be disabl
    ed!
    12:55:31 [INFO] [FalseBook Extra] ERROR: No Plugin found to handle Permissions!
    12:55:31 [INFO] [FalseBook Extra] FalseBook Extra 0.64alpha by GeMo will be disa
    bled!
    12:55:31 [INFO] [FalseBook IC] ERROR: No Plugin found to handle Permissions!
    12:55:31 [INFO] [FalseBook IC] FalseBook IC 0.64alpha by GeMo will be disabled!
    12:55:31 [INFO] ScrapBukkit version 0.2.1 is enabled!
    12:55:31 [INFO] WorldEdit 4.1 enabled.
    12:55:31 [INFO] WorldEdit: Default configuration file written: config.yml
    12:55:31 [INFO] WorldEdit: No known permissions plugin detected. Using configura
    tion file for permissions.
    12:55:31 [INFO] Yeditor version 1.2not enabled. Permissions not detected
    12:55:31 [INFO] Yeditor Disabled
    12:55:31 [INFO] Done (0,099s)! For help, type "help" or "?"
    So, it does not seem to work very well. most of the plugins i want to use (because i know them, i know all of these plugins execpt Yeditor, wich i use because i have zero expirience running a server)

    It seems to not see permissions as a valid plugin, i named the .yml file in the permissions folder world
    my version of bukkit is the recommended build, posted on (03 March 2011, 23:22GMT) (sorry, i cannot find a version number, and my craftbukkit.jar file does not contain a version number. im sorry.)
    evrything is working, just that it does not detect permissions.


    EDIT: I did use enough spaces, i just replaced the yeti thing by my name.

    EDITEDIT: i did do something wrong, but it is working now.
    now i can go play around and torturne people whit my mod powaz! :D
     
  29. Offline

    charlie k-j

    @Miauw62 I'm having the same problem, could you help me? I think it's when I add any permission nodes into the yml file. It's so annoying. Also in Notepad++ the text I entered will go red. Any help?
     
  30. Offline

    ToshNeox

    I need to know what to put in my config file to stop the users from using the following commands:
    ( Standard server commands: )
    Give
    Stop
    Save-all
    Save-on
    Save-off
    Tp
    Time

    And also what are the permissions for WorldEdit and WorldGuard?
     
  31. Offline

    charlie k-j

    @ToshNeox Seeing as I'm waiting myself I may aswell help others. For those commands to be disabled you would put a '-' infront of the command. I don't know them as they look to be the default but as an example:

    In command book's case:
    - '-commandbook.give'

    as for the WorldEdit permission nodes, I currently can't conncet to Sk89's wiki as it may be overloaded.
    [MERGETIME="1299940615"][/MERGETIME]
    Ok this Permissions plugin is officialy screwed up. I used that online parser and apparently all of the added commands were 4 spaces forward in YAML so I did this.

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'commandbook.give'
            - 'commandbook.give.infinite'
            - 'commandbook.who'
            - 'commandbook.motd'
            - 'commandbook.rules'
            - 'commandbook.spawn'
            - 'commandbook.teleport'
            - 'commandbook.msg'
            - 'commandbook.whereami'
    
    
    The parser says its fixed but Permissions still doesn't load. It worked fine until I copied all the World.edit permission nodes from word into notepad and I think it broke YAML. But even installing a new jar its broke. I can't add ANYTHING.
     
Thread Status:
Not open for further replies.

Share This Page