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

    Tohclan

    Going to highlight this for you... This is how PermissionsPlus sets it after using the /group command. <---- meaning that it sets it to that without the ''s... And thank you very much, but I know what "/code" does, I thought spoiler would act the same, since they are spaces, not tabs.
     
  3. Offline

    MintyAnt


    I'm actually having this same problem. All of my users suddenley get the "do not have access" for every right click.
    Place a torch, Place a block, Open a door, etc...
    Yet they still can do it.


    Heres my permissions file. If you wish for me to provide a list of all plugins and whatnot, ask and ill get if for you.

    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system: default
    
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:"
    #   field seperated by commas.
    #
    #   Example: inheritance: Default,Admins,
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    groups:
        default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.me'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.getpos'
                - 'essentials.nick'
                - 'essentials.whois'
                - 'essentials.spawn'
                - 'essentials.motd'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.msg'
                - 'essentials.realname'
                - 'commandSigns.use'
                - 'commandSigns.create'
                - '/stats'
                - 'mcdocs.*'
                - 'signColours.*'
                - 'signedit.add'
                - 'signedit.edit'
                - 'signedit.edittext'
                - 'signedit.savetext'
                - 'signedit.loadtext'
                - 'signedit.removetext'
                - 'mobRider.monsters'
                - 'discosheep.*'
                - 'wormhole.use.*'
                - 'wormhole.remove.*'
                - 'wormhole.build'
                - 'wormhole.simple.use'
                - 'wormhole.simple.build'
                - 'wormhole.simple.remove'
                - 'worldedit.navigation.jumpto'
                - 'worldedit.navigation.thru'
                - 'elevators.builder'
                - 'elevators.advancedbuilder'
                - 'elevators.operator '
                - 'travelportals.*'
                - 'mobRider.command.*'
                - 'mobRider.animals'
                - 'mobRider.monsters'
                - 'monstertamer.*'
        mod:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - default
            permissions:
        admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - mod
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        MintyAnt:
            group: admin
            permissions:
        jcranney:
            group: admin
            permissions:
    I really appreciate any help guys >.<
     
  4. Offline

    Malkierian

    @MintyAnt The only thing I can see wrong with yours at the moment is that you shouldn't have your admin group inheriting from anyone.

    @Tohclan The only thing I can suggest to you now is to update to CB670 and Permissions 2.6, as I tried to recreate your problem and failed, but that is what I am running (I also have PermissionsPlus, and the changes it made did nothing to my permissions system).
     
  5. Offline

    heroanth2345

    no i just deleted GroupManager
     
  6. Offline

    watashi420

    edit, i figured everything out. Keep up the good work.

    mac
     
  7. Offline

    pips041

    here you go, i just added specific permissions for groups
    18:26:19 [SEVERE] Could not load plugins/Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:101)
    ... 8 more
    Caused by: expected '<document start>', but found BlockMappingStart
    in "<reader>", line 14, column 1:
    plugin:
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:233)
    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.getSingleNode(Composer.java:108)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:73)
    at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:126)
    ... 13 more


    i get that there is something wrong witht the plugin: but i dunno what

    # 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:
     
  8. Offline

    Tohclan

    Just updated to 670, permissions 2.6, and added the ''s to the permissions.
    Same thing's happening.. Any player without OP or '*' gets "You don't have permission to use this."

    I then used /group to make myself a lower rank, deop'ed myself to test and it removed the ''s from the permissions config just like I said.
     
  9. Offline

    neogeek23

    thx rewrote the thing by hand and all my error are gone now :)
     
  10. Offline

    ChazZTheSpazZ

    No, that's pastebin's fault. Notepad++ is showing the proper spacing in my actual file. I've checked and double checked.
     
  11. Offline

    way2blue4u

    When I delete the line its pointing to it moves down to the next line and says there is a problem on that line.
     
  12. Offline

    Malkierian

    Hmm... Have you tried all your stuff while still being admin, but without being op?
     
  13. Offline

    u83rju1c3

    sorry I can't find an answer with google or on here. how do i set up prefixes? i would like colours and text. this is not working:

    prefix: '[&wvamp&w]'
    suffix: '&w'

    nor is:

    prefix: '[vamp]'
    suffix: ''

    EDIT: yes the proper spacing is in there, I didn't change it but pasting didn't come out right.
     
  14. Offline

    jasonhu

    Code:
     [SEVERE] Could not load plugins\Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:101)
        ... 8 more
    Caused by: while scanning an anchor
     in "<reader>", line 75, column 22:
                    suffix: '&f'
                             ^
    expected alphabetic or numeric character, but found '(39)
     in "<reader>", line 75, column 24:
                    suffix: '&f'
                               ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1164)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAnchor(ScannerImpl.java:794)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:317)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:73)
        at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:131)
        ... 13 more
    do you know what it says or mean because i just download it and then run it, it didn't gave any errors until i edit the yml file. Thank you for your help and hope your shoulder goes better.
     
  15. Offline

    Raist

    I have been trying for hours to get permissions to work for a number of different plugins, but for now, only MultiVerse. The funny thing is, I have permission for other things that requires permission, but not for this one, and one other plugin so far. I have a feeling somethings in the yar file are a little out of whack but can anyone please tell me exactly why this wont work, thank you.

    # 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: '&8[&4Mod&8]&4'
    suffix: '&f'
    build: true
    inheritance:
    - Default
    permissions:
    - 'multiverse.world.create'
    - 'multiverse.world.import'
    - 'multiverse.world.remove'
    - 'multiverse.world.list'
    - 'multiverse.tp'
    - 'multiverse.world.setspawn'
    - 'multiverse.world.spawn'
    - 'multiverse.portal.create'
    - 'multiverse.portal.remove'
    - 'multiverse.portal.select'
    - 'multiverse.portal.destination'
    - 'multiverse.portal.rename'
    - 'multiverse.portal.list'

    Admins: Raist1323
    default: false
    info:[&4Admin&1]&4'
    suffix: '&f'
    build: true
    inheritance: Moderator
    permissions:
    - '*'

    ##
    # Raist1323 is in the Admin group
    ##
    users:
    Raist1323:
    group: Admin
    permissions:
    - '*'

    When I do the command in the game to try it out, it will say, "You do not have the rights to access this command" and the command prompt will say this "00:59:20 [INFO] Loaded world: world" after I hit enter on the command in the game to create a new world with MUltiVerse

    btw all of that is in the right spaces and such, just dont know how to put it in that little box everyone else is.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  16. Offline

    Celtic Minstrel

    /sethome and /spawn are not vanilla Minecraft commands. :p

    I'd love to help, but I really don't see any errors in your config. Is the problem that Citizens can use the command but Moderators can't? The only thing I can think of (which will probably do nothing) is reverse the order of the two groups in the file.

    Your issue is unlikely to be directly related to Permission. It's probably one of your other plugins that uses Permissions. Try disabling everything except Permissions and then adding them back one at a time until the spam starts up again.

    That's because /list and /give are vanilla Minecraft commands. Either install a plugin that replaces them (such as Essentials, CommandBook, General, etc), or install DefaultCommands which can be found in Plugin Submissions (but be warned; it's a bit glitchy at present).

    Just wondering, did you check that there isn't a tab on that line? From the description of your problem it sounds unlikely, though.
     
  17. Offline

    alefnull

    ok, i've searched for as long as i have the patience for.
    i've gone over every tutorial/faq/thread i've found for Permissions and Essentials, and cannot find a single person having the same issue as i am.

    to preface: i'm head admin on the Minecrap.com server, owned by BitBurner. i tell you this, not to toot my own horn, but to convey the need i have to get this working as soon as possible.

    our permissions file was long and ugly and terribly formatted, along with using old syntax, etc. so i took it upon myself to re-create the file. i've run the finished file through the online YAML parser, and found zero errors with it. so i know that it's correct in that respect.

    the problem i'm having seems to be between Permissions (2.5.5) and Essentials (Reloaded 2.1.22).
    i have some users set to be included in my 'Mods' group, which inherits permissions from all previous groups. the issue is, when i tested it out just now, by de-opping one of my Mods, he seemed to have access to all commands he should, and none that he shouldn't, with 2-3 exceptions: he could not use /god, nor /heal, nor one other Essentials command that we tried; /unlimited. but all other Essentials commands he should have access to, he did. i really don't understand what i've done wrong. if anyone can help me, i'd really appreciate it, especially if it's a quick reply, because, as i said, the sooner this is done, the less inconvenience there will be for our users.

    if a view of my current permissions file is necessary, please say so, and i will PM you a pastebin link, as i'm not exactly comfortable showing information about all of our users/vips/etc. out in the open.

    thank you very much in advance.
     
  18. Offline

    reconoid

    @Tohclan
    It's not Permissions problem. Add craftbook.mech.* to your groups.
     
  19. Offline

    JMX

    I've got a problem I do not understand.
    After updating to 1.4 it seems permiss not work with all plugins, iconomy and Essentials does not work at all with permisson but only those who are OP can use the commands.

    When I try the commands that do not work i cant find anything in the "command box"/"server"

    I'm totally lost, what could be the reason?

    im using permission 2.6 and CB 670 and alos the latest essentials and iconomy
     
  20. Offline

    Miauw62

    Okay, i got a very big problem.
    I got permissions installed, and i still use a old world.yml file from 1.3_01.
    but now, i got all my plugins, and it stopped working, me and my friend cant do anything.
    i can use /god, but i cant build, and all antibuild flags are set to true, so evrybody can build.
    i really dont understand this.


    EDIT:

    Nvm, FAQ solved it, essentialsgroupmanager and essentialsgroupbridge really dont play nice whit permissions.
     
  21. Offline

    EliteASH_11

    Sorry if this has already been asked, but how do i promote and demote someone?
     
  22. Offline

    RustyDagger

    OMFG WTF My whole file format was changed when i updated to 2.6 WTF !!!!!!!!

    Dude you broke my whole server every 1 is now default rank and no commands work. I have 100 + users if i have to change the group for every single 1 of them O wow that would be epic fail. not to mention my nodes are no longer in my.

    permissions[perm.1, perm.2, perm.3]

    lay out it all seems to be now on a new line each again format uh wtf also it seems to be formatted like this now.

    - node.sub.1

    aint it meant to be.

    - 'node.sub.1'

    So now it looks like I will have to add all them by hand again.... 17 plugins permissions for all them this is going to take a while.

    Ok wow after 2 hours i seem to have my file semi working but the ' and ' on the end of some of my nodes keep removing them self its weird May be a bug im using CB 670 and 2.6 permissions.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  23. Offline

    Sammy

    Can some one tell me how the
    AddUserPermisson and RemoveUserPermisson methods work ?
     
  24. Offline

    zaklampje

    I'll just ask again, cuz u didn't respond to my previous post...
     
  25. Hey guys.

    I've got a problem with the permissions plugin, since i moved to a new root-server.

    RAM, CPU and OS changed (from 32bit to 64bit).

    I moved the whole, working Minecraft-Server to the same directory on the new one. But on starting, it causes many errors. So i tried to figure out, what plugin is causing the error. What i found out is, that only the whitelist plugin is running, so i made a new folder and downloaded everything new (minecraft, craftbukkit, plugins) and looked that the version numbers match.

    So i defently have the right craftbukkit version and permission 2.5.5. (tried another craftbukkit version which should work, and the one used at the older server) But this error appears in the console.

    Code:
    2011-04-04 21:10:09 [SEVERE] Could not load plugins/Permissions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        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:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:97)
        ... 8 more
    I renamed the config file to my mapname and added me as an admin. Nothing changed. I also tried the config file from the working server, but it didn't change a thing.

    So i hope you can help me. If you need more information, ask me.

    Sorry for my english :)

    eXi
     
  26. Does 2.6 work with 617?
     
  27. Offline

    Maisl

    Hello if have a Problem
    [INFO] This server gb61ef8c-b670jnks (MC: 1.4)
    [INFO] Preparing level "world"
    [INFO] Preparing start region
    [INFO] 144 recipes
    [INFO] [Permissions] (Phoenix) was Initial
    [INFO] iChat (v2.2.2) enabled
    [INFO] [Permissions] version [2.6] (Phoeni
    [INFO] [iChat] Found Permissions (v2.6)
    I think there are no Errors
    I try this out
    groups:
    Default:
    default: true
    info:
    prefix: '&4'
    suffix: ''
    build: false
    inheritance:
    permissions:
    - '*'
    prefix works and build too, but it doenst matter what is under permissions, nothing works, so i have no rights, its the same with admin. Where is the problem?
    I changed only these in Permissions nothing more, and the name is the same like the world of the Data and in addition I redownload the Data and changed that without any tabs^^
    The next interessingt thing, which i found out, I can control other plugins with Permissions, but general things like - 'general.time' only as an OP, is there any way to control these things with Permissions?
     
  28. Offline

    jeddeliso

    Hey, I have an interesting question, can u only make 3 groups in permissions? as you see up there, im trying to make 14 groups up there.

    CAN SOMEONE REPLY TO ME ASAP, MY PLAYERS WANT TO KILL ME SO BAD! DX
     
  29. Offline

    Neoinr

    I am having a couple of problems with my Permissions. The file is fully setup and working reasonably well. First off, if I have a globalized parameter set for a group, how do I deny a parameter thats included within the global. For example, my OPs have commandbook.*. How can I deny them commandbook.spawnmob without having to manually set every other parameter?

    And secondly, prefixes. We are running latest CB, nChat, and Permissions. Prefixes are working. However, whenever we change a prefix for a group within the world.yml file, the file changes the prefix back on reload. It is impossible for us to change the group prefixes. Secondly, whenever we set a prefix for an individual user, it does not work, even though one's that were already set in the same manner before the update do. Thanks, neoinr.
     
  30. Offline

    jeddeliso

    hey, first, you can't deny commands for OPs
    btw, for normal groups, you can put '-blah.blah' to deny a group of that command, but if your OP, it wouldn't work, cause OPs contains all commands

    secondly, for prefixes, try hard turning off the server, then change the file, because when you reload a server, the plugin saves itself, overwriting your edited one. one the matter for individual, i proposes difficulties for nChat cause it will look for both the Groups prefix and the individual prefix, i suggest just using 1 prefix.

    hope that helps! :D

    btw, how many groups do you have?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  31. Offline

    rcjrrjcr

    Basically, these methods add permission nodes permanently to the player (i.e the world's config is saved with the changes made dynamically).
    Show Spoiler
    Code:
        public void addUserPermission(String world, String user, String node) {
            this.loadWorld(world);
    
            if(this.WorldInheritance.containsKey(world) && !world.equals(this.defaultWorld)) {
                world = this.WorldInheritance.get(world);
    
                this.loadWorld(world);
            }
    
            List<String> list = this.WorldConfiguration.get(world).getStringList("users." + user + ".permissions", new LinkedList<String>());
            list.add(node);        
            this.WorldConfiguration.get(world).setProperty("users." + user + ".permissions", list);
            
            //MODIFICATION START
            Set<String> userPerms = this.WorldUserPermissions.get(world).get(user);
            if(userPerms==null) userPerms = new HashSet<String>();
            userPerms.add(node);
            this.WorldGroups.get(world).put(user, userPerms);
            //MODIFICATION END
        }
    


    They modify the relevant permission entry in the world's Configuration instance (for saving), and after that add the permission to the loaded WorldUserPermissions/WorldGroups HashMap (for the has()&permission() methods to check).

    Note that the addition of the permission node to WorldUserPermissions/WorldGroups does not happen in 2.5.5, nor does the world data get saved in the old version. The code from my pull request to implement these new features was added in 2.6. You can see the "MODIFICATION START" and "END" comments marking what I changed.
     
    Sammy likes this.
Thread Status:
Not open for further replies.

Share This Page