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

    GKenTN

    SEVERE] Could not load 'plugins/Permissions.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:191)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:100)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    12:41:15 [SEVERE] java.lang.String.isEmpty()Z loading Essentials v2.2.16 (Is it up to date?)
    java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
    at com.earth2me.essentials.Util.updateLocale(Util.java:386)
    at com.earth2me.essentials.Essentials.onEnable(Essentials.java:96)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    any ideas?.. i added myself to admin but i cant use any admin commands...
     
  3. Offline

    augis

    and in console there is no errors it looks like

    [INFO] [permissions] <phoenix> was initialized.
    [INFO] [version 2.7.3] <phoenix> loaded

    and non of errors :/
     

    Attached Files:

  4. Offline

    rcjrrjcr

    Either the jar you downloaded was corrupted, or your JRE is out of date.
     
  5. Offline

    gunpoint

    I have 2.7.3. Where can I get 3.0?
     
  6. What is wrong with this YAML?
    Permissions keeps spitting out errors at me about YAML.
    I used all spaces, no tabs.

    Show Spoiler

    Code:
    groups:
        guest:
            default: true
            info:
                warp.limit.private: 0
                warp.limit.public: 0
                warp.limit.global: 0
                prefix: '&f[GUEST]&7'
                build: false
                suffix: ''
            inheritance:
            permissions:
                - commandbook.spawn
                - commandbook.call
                - warp.to.own
                - warp.to.invited
                - warp.to.other
                - warp.to.global
                - warp.to.world.within.*
                - warp.command.list
                - warp.command.search
                - warp.command.info
        free:
            default: false
            info:
                warp.limit.private: 2
                warp.limit.public: 1
                warp.limit.global: 0
                prefix: '&3[FREE]&b[MEMBER]&7'
                build: true
                suffix: ''
            inheritance:
                - guest
            permissions:
                - commandbook.call
                - commandbook.clear
                - commandbook.msg
                - commandbook.say.me
                - commandbook.spawn
                - commandbook.who
                - warp.create.private
                - warp.create.public
                - warp.edit.delete
                - warp.edit.invite.*
                - warp.edit.message
                - warp.edit.update
                - warp.edit.owner
                - homex.*
                - iConomy.list
                - iConomy.payment
                - worldedit.navigation.unstuck
                - worldguard.region.addmember.own.*
                - worldguard.region.flag.own.*
                - worldguard.stack
                - mcbans.vote.msg
                - mcbans.vote
        basic:
            default: false
            info:
                warp.limit.private: 5
                warp.limit.public: 3
                warp.limit.global: 0
                prefix: '&c[BASIC]&b[MEMBER]&7'
                build: true
                suffix: ''
            inheritance:
                - free
            permissions:
                - supplysign.access
                - simplereserve.enter.full
                - warp.create.public
        pro:
            default: false
            info:
                warp.limit.private: 10
                warp.limit.public: 5
                warp.limit.global: 0
                prefix: '&d[PRO]&b[MEMBER]&7'
                build: true
                suffix: ''
            inheritance:
                - basic
            permissions:
                - commandbook.kit.*
                - commandbook.thor
                - worldguard.god
        vip:
            default: false
            info:
                warp.limit.private: 20
                warp.limit.public: 10
                warp.limit.global: 0
                prefix: '&6[VIP]&b[MEMBER]&7'
                build: true
                suffix: ''
            inheritance:
                - pro
            permissions:
        police:
            default: false
            info:
                prefix: ''
                build: true
                suffix: ''
            inheritance:
            permissions:
                - bb.admin.info
        policeFree:
            default: false
            info:
                prefix: '&b[FREE]&e[POLICE]&7'
                build: true
                suffix: ''
            inheritance:
                - free
                - police
            permissions:
        policeBasic:
            default: false
            info:
                prefix: '&c[BASIC]&e[POLICE]&7'
                build: true
                suffix: ''
            inheritance:
                - basic
                - police
            permissions:
        policePro:
            default: false
            info:
                prefix: '&d[PRO]&e[POLICE]&7'
                build: true
                suffix: ''
            inheritance:
                - pro
                - police
            permissions:
        policeVip:
            default: false
            info:
                prefix: '&6[VIP]&e[POLICE]&7'
                build: true
                suffix: ''
            inheritance:
                - vip
                - police
            permissions:
        mod:
            default: false
            info:
                warp.limit.global: -1
                prefix: ''
                build: true
                suffix: ''
            inheritance:
            permissions:
                - bb.admin.*
                - commandbook.clear.*
                - commandbook.teleport
                - commandbook.teleport.*
                - commandbook.time
                - honeypot.break
                - honeypot.create
                - mcbans.ban.local
                - mcbans.kick
                - mcbans.lookup
                - mcbans.mod
                - mcbans.vote.kick
                - mcbans.vote.msg
                - simplereserve.enter.full
                - supplysign.*
                - worldedit.navigation.*
                - worldguard.god
        modFree:
            default: false
            info:
                prefix: '&b[FREE]&2[MOD]&7'
                build: true
                suffix: ''
            inheritance:
                - free
                - mod
            permissions:
        modBasic:
            default: false
            info:
                prefix: '&c[BASIC]&2[MOD]&7'
                build: true
                suffix: ''
            inheritance:
                - basic
                - mod
            permissions:
        modPro:
            default: false
            info:
                prefix: '&d[PRO]&2[MOD]&7'
                build: true
                suffix: ''
            inheritance:
                - pro
                - mod
            permissions:
       modVip:
            default: false
            info:
                prefix: '&6[VIP]&2[MOD]&7'
                build: true
                suffix: ''
            inheritance:
                - vip
                - mod
            permissions:
        viceadmin:
            default: false
            info:
                warp.limit.global: -1
                prefix: ''
                build: true
                suffix: ''
            inheritance:
                - mod
            permissions:
                - commandbook.give
                - commandbook.rocket
                - groupmanager.manuadd
                - worldedit.*
                - worldguard.*
       viceadminFree:
            default: false
            info:
                prefix: '&b[FREE]&2[&9VICE&2ADMIN]&7'
                build: true
                suffix: ''
            inheritance:
                - free
                - viceadmin
            permissions:
       viceadminBasic:
            default: false
            info:
                prefix: '&c[BASIC]&2[&9VICE&2ADMIN]&7'
                build: true
                suffix: ''
            inheritance:
                - basic
                - viceadmin
            permissions:
       viceadminPro:
            default: false
            info:
                prefix: '&d[PRO]&2[&9VICE&2ADMIN]&7'
                build: true
                suffix: ''
            inheritance:
                - pro
                - viceadmin
            permissions:
       viceadminVip:
            default: false
            info:
                prefix: '&6[VIP]&2[&9VICE&2ADMIN]&7'
                build: true
                suffix: ''
            inheritance:
                - vip
                - viceadmin
            permissions:
         admin:
            default: false
            info:
                warp.limit.private: -1
                warp.limit.public: -1
                warp.limit.global: -1
                prefix: '&8[OWNER]&4[ADMIN]&7'
                build: true
                suffix: ''
            inheritance:
            permissions:
                - '*'
         homicidal:
            default: false
            info:
                prefix: '&b[FREE]&9[HOMICIDAL]&7'
                build: true
                suffix: ''
            inheritance:
                - pro
            permissions:
                - commandbook.give
                - commandbook.teleport.*
                - worldedit.*
        veteran:
            default: false
            info:
                prefix: '&b[FREE]&a[VETERAN]&7'
                build: true
                suffix: ''
            inheritance:
                - basic
            permissions:
     
  7. Offline

    GKenTN

    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'foo.bar'
    - 'essentials.help'
    - 'essentials.signs.heal.use'
    - 'essentials.tp'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'essentials.tpa'
    - 'essentials.sethome'
    - 'essentials.home'
    - 'essentials.balance'
    - 'essentials.pay'
    - 'essentials.nick'
    - 'essentials.give'
    - 'essentials.time'
    - 'essentials.suicide
    - 'essentials.list'

    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'essentials.bigtree'
    - 'essentials.god.others'
    - 'essentials.heal'
    - 'essentials.weather'
    - 'essentials.setspawn'
    - 'essentials.kill'
    - 'essentials.broadcast'
    - 'essentials.antioch'
    - 'essentials.burn'
    - 'essentials.broadcast'
    - 'essentials.clearinventory.others'
    - 'essentials.reloadall'
    - 'essentials.essentials'
    - 'essentials.eco'
    - 'essentials.setworth'
    - 'essentials.worth'
    - 'essentials.sell'
    - 'essentials.tpall'
    - 'essentials.tpo'
    - 'essentials.signs.heal.create'
    - 'essentials.ext'
    - 'essentials.heal.others'
    - 'essentials.god'
    - 'essentials.help'
    - 'essentials.signs.heal.use'
    - 'essentials.tp'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'essentials.tpa'
    - 'essentials.sethome'
    - 'essentials.home'
    - 'essentials.balance'
    - 'essentials.pay'
    - 'essentials.nick'
    - 'essentials.give'
    - 'essentials.time'
    - 'essentials.suicide
    - 'essentials.list'

    ##
    # 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:
    GKTN:
    group: Admins
    permissions:
    - '*'
    d.cat:
    group: default
    permissions:
    --xPlastic:
    group: default
    permissions:
    Inception:
    group: default
    permissions:
    cant use simple commands like /give as well... it keeps on saying i dont have the access to do so..
     
  8. NVM, found the problem with mine...
     
  9. Offline

    rcjrrjcr

    It's labeled as "Latest Dev Build". Stability and safety of data is not guarenteed.
    What version of Java are you using?
     
  10. Offline

    Zytil23

    What is the command node to give my moderators /give and /time ect?
     
  11. Offline

    GKenTN

    im using the latest version on my mac os x currently.. 12.8 i think
     
  12. Offline

    Jeyge

    You didn't make any of the changes so I would expect it to still not work.
     
  13. Offline

    augis

    soo what i have to doo ?
     
  14. Offline

    rcjrrjcr

    Open Terminal and run "java -version". It'll report the version number.
     
  15. Offline

    gunpoint

    I downloaded 3.0 and brought over my groups and users in their respective yml's. For some reason I can't access my other plugins.

    This is for my groups
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Vip:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
                - 'SpawnX.spawn'
                - 'HomeX.*'
                - 'shelfspeak.read'
                - 'shelfspeak.write'
                - 'shelfspeak.colors'
                - 'shelfspeak.lock.read'
                - 'shelfspeak.lock.write'
                - 'smpoll.view'
                - 'smpoll.vote'
                - 'playerList.player'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Vip
            permissions:
                - '*'
    This is for my users:
    Code:
    users:
        TheNo1Yeti:
            groups:
                - Admins
            permissions:
        plasmarif:
            groups:
                - Admins
            info:
                prefix: '&6'
            permissions:
        ThrarEril:
            groups:
                - Vip
            info:
                prefix: '&5'
            permissions:
        Swagger9898:
            groups:
                - Vip
            info:
                prefix: '&2'
            permissions:
        blackmetalall:
            groups:
                - Vip
            info:
                prefix: '&4'
            permissions:
        Druid_Iris:
            groups:
                - Vip
            info:
                prefix: '&1'
            permissions:
        Chrono32123:
            groups:
                - Vip
            info:
                prefix: '&9'
            permissions:
        generalFORK:
            groups:
                - Vip
            info:
                prefix: '&a'
            permissions: 
     
  16. Offline

    rcjrrjcr

    First, users cannot have their own prefixes any more. Second, where are the user and group configs located in?
     
  17. Offline

    augis

    my acc is Pilkas_Assasin and i can build ewen when default build is false can someone help ?

    Code:
    # 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:
            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:
                - '*'
            Beast:
            default: false
            info:
                prefix: ''
                suffix: 'THE DARK BEAST'
                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:
        avriliux:
            group: Admins
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
        avriliux:
            group: Beast
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
     
  18. Offline

    Lobster

    Hi !

    I have big problem with this plugin permissions, i DONT KNOW how to add someone to any group, i dont know how to add a group, i dont know what i must do TO PERMISSIONS work :(

    I need help.
     
  19. Offline

    augis

    lobster same problem
     
  20. Offline

    rcjrrjcr

    Use this world.yml instead. http://pastebin.com/A8pHxMBc Remember to rename it to match the name of your world. If your world is named "testworld", name it "testworld.yml", and put it under plugins/Permissions/.
    Look at the provided RENAME-ME.yml for an example.
     
  21. Offline

    Funstar

    I am trying Permissions 3.0 right now. I want to use it with MySQL, storageconfig.yml works, cause database tables have been created successfully. Now I am wondering how to set up users/groups. I took users and groups from my old world.yml and saved it to ./world/users.yml and ./world/groups.yml. I wonder if they are used in anyway when I am using MySQL? If yes, this doesn't work for me. If no, what do I have to enter into my MySQL tables to have this working?

    I tried adding some users/groups to the tables on my own, but it doesn't work as I hoped, too.

    BTW: from the server.log: 2011-05-14 12:20:21 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'userid' in 'field list'
     
  22. Offline

    rcjrrjcr

    Dev build updated. Various SQL fixes.

    That has been fixed in a recent build. Download it again.
     
  23. Offline

    Funstar

    This is 3.0-alpha-2.zip, could not find a newer one.

     
  24. Offline

    fffizzz

    it created the tables for me, just wanted some same data for the tables.. it looks kinda confusing without something to go by.
     
  25. Offline

    Oliver Hörberg

    Hello, could you please tell me what I have done wrong? In the YAML parser i get this:
    Code:
    ERROR:
    
    while parsing a block collection
      in "<unicode string>", line 69, column 13:
                    - 'foo.bar'
                    ^
    expected <block end>, but found '<scalar>'
      in "<unicode string>", line 71, column 16:
                    - 'mcmmo.regeneration'
                       ^
    This is my .yml file:
    Code:
    # 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:
            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: true
            inheritance:
            permissions:
                - 'foo.bar'
                - 'mcmmo.motd
                - 'mcmmo.regeneration'
                - 'mcmmo.chat.partychat'
                - 'mcmmo.commands.ability'
                - 'mcmmo.commands.ptp'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.commands.myspawn'
                - 'mcmmo.commands.setmyspawn'
                - 'mcmmo.commands.- 'mcmmo.commands.setmyspawnother'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
                - 'mcmmo.ability.herbalism
                - 'mcmmo.item.chimaerawing'
                - 'mcmmo.skills'*
        Moderators:
            default: false
            info:
                prefix: '[MOD]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
        Admins:
            default: false
            info:
                prefix: '[ADMIN]'
                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:
        Ololizoz:
            group: Admins
            permissions:
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
     
  26. Offline

    augis

    tryed but i see now that when i destroy a block in my server console get an error

    how to copy console's?
    writing
     
  27. Offline

    Maxis010

    Code:
    # 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:
            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: true
            inheritance:
            permissions:
                - 'foo.bar'
                - 'mcmmo.motd'
                - 'mcmmo.regeneration'
                - 'mcmmo.chat.partychat'
                - 'mcmmo.commands.ability'
                - 'mcmmo.commands.ptp'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.commands.myspawn'
                - 'mcmmo.commands.setmyspawn'
                - 'mcmmo.commands.setmyspawnother'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
                - 'mcmmo.ability.herbalism'
                - 'mcmmo.item.chimaerawing'
                - 'mcmmo.skills.*'
        Admins:
            default: false
            info:
                prefix: '[ADMIN]'
                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:
        Ololizoz:
            group: Admins
            permissions:
    
    Multiple problems, this should be cleaned up just fine, try it and get back to us
     
  28. Offline

    grapeman

    Just like to report MYSQL works well with the latest dev build. But the lack of documentation/comments make it rather hard for me set everything up (which is expected as it is only a dev build)

    Please include some docs for the stable build of 3.0 :)
     
  29. Offline

    DiddiZ

    Is the a way to change a players group ingame via a command or with a public method?
    I'm writing a plugin that mainly consists of the feature to switch between two groups.
     
  30. Offline

    blackvoid

    Since it seems like you wont make this compatible with MySQL, can you atleast add a few functions to the API like set user group and set user permissions.
     
  31. Offline

    Maxis010

    Then explain this
    Recheck the v3 branch, from what I read it does support MySQL
     
Thread Status:
Not open for further replies.

Share This Page