Inactive [SEC] PermissionsPlus v3.2.5p - Alternative commands to modify Permissions in-game now w/MWS [1337]

Discussion in 'Inactive/Unsupported Plugins' started by DigitalTyrant, Mar 20, 2011.

  1. Offline

    DigitalTyrant

    PermissionsPlus - Adds ability to modify Permissions in-game

    Updated: 10/6/2011
    Version: 3.2.5p [jar]
    CraftBukkit: [b1337jnks]
    Description:
    PermissionsPlus adds commands to allow administrators the ability to modify their Permissions config from within Minecraft client. The most complete Permissions editing plugin for Bukkit. Supports Multi-World. Updated for MultiPlay!​
    REQUIRES: Permissions 3.x - Permissions Thread

    Includes: P2Aliases updated 10/6/2011

    Feedback: http://p2.idea.informer.com/

    Get updates on TWITTER!

    Installation and Usage information and Permissions nodes
    are available at Mymchost.com

    Information:

    It appears that I am not the only server admin that stuck to Permissions v2.7.4 so, I have released PermissionsPlusLegacy v2.4. It is a RB1000+ compatible version of PermissionsPlus v2.3. You can download this in the change log below.
    • You can specify multiple worlds separated using a comma. Do not use any spaces after the comma.
      Code:
      w:World1,World2,World3
    • You can specify all worlds using an asterisk.
      Code:
      w:*
    • You can specify multiple groups using commas for the /user -addgroup command.
      Code:
      /user -addgroup u:Username s:Group1,Group2,Group3
    • All Usernames and Groups can be shortened. You will be notified if more than one possible match is found.
      Code:
      digital = DigitalTyrant, adm = Administrator
    • With 2.x+ you must add the info variable 'rank' to your groups in order to enable promote, demote and some group functions. You can set this variable from within the game using the command:
      Code:
      /group -setinfo g:GroupName i:rank s:1-100+
                           or
                         /rankset GroupName 1-100+ world 
      The higher the number the higher the rank. Make sure you use i:rank and not i:Rank it is case-sensitive.
    • You can now set Promote and Demote limits. The Promote limit is the highest rank they can promote to. Demote limit is the highest limit that they can demote from. You can set these using the commands:
      Code:
      /group -setinfo g:GroupName i:dlimit s:50
                         /group -setinfo g:GroupName i:plimit s:75 
    If you use want to Permissions + PermissionsPlus while using Essentials plugins, make sure you do not have FakePermissions or EssentialsGroupBridge enabled.



    Not sure how long this will be useful with Bukkit's upcoming Permissions system, but it allows the Moderators of my server to give new members access without having to modify the .yml file directly. I will continue development until the new Bukkit Permissions system has widely replaced Permissions plugin.
    Thanks to Nijikokun, original author of Permissions.

    Thanks and Enjoy!
     
  2. Offline

    Spamandritz

    ok so wait i realized i stated this wrong...how can i let non-ops spawn materials

    or is there a setting that makes ops conform to the "no promoting yourself" rule?
    because that would be the best solution
     
  3. Offline

    DigitalTyrant

    With the General plugin you can give non-ops the permission to give themselves items. There are quite a few other plugin options that would allow you to specify permissions to allow/disallow spawning items
     
    Spamandritz likes this.
  4. Offline

    leetgamer

    The fact that we now have to add a rank to every group makes this plugin a nuisance. Before, it was so easy to use but now.... with 7 maps and 5+ ranks for each...

    In my opinion, you made this godsend plugin a nightmare. :/
     
  5. Offline

    QuackzMcDuck

    You completely screwed this plugin over with 2.0....I want it back the old way please...Add an option to disable that ranking stuff and make it like it was before! Right now the plugin is horrible, I had everything down and then you went and changed everything...This is hardly the same plugin anymore...I'll legit like donate if you can get it back to the way it was... I want to be able to use the old commands like /group name group world because the new ones don't fit on signs...So this plugin is completely useless for me.
     
    leetgamer likes this.
  6. Offline

    Lanuk

    Its really not that hard, just read for a few minutes like I did and you should be good to go
     
  7. Offline

    leetgamer

    It really is a mess now. It would be easier if he had actually explained the rank part.


    Not sure what you are reading there, I see little to no explanation.
     
  8. Offline

    Donny

    Allow me to pull out my violin
    __
    I get an internal error when i try to use the in game command to add rank.
    Not currently able to access the server log, I'm assuming this is a common problem though, will find error when I get home.
    Here is the error
    Code:
    2011-05-08 08:10:12 [INFO] [Permissions] Reload of World world completed.
    2011-05-08 08:10:12 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'group' in plugin PermissionsPlus v2.0.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at java.lang.String.replace(String.java:2219)
        at net.codej.permissionsplus.PermissionsPlus.sendMessage(PermissionsPlus.java:1104)
        at net.codej.permissionsplus.PermissionsPlus.onCommand(PermissionsPlus.java:463)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more

    So I checked my permissions and even though I got that error it still aded the rank. But still when I "/demote Walrus world" I get nothing not even an error. I have "*" permissions


    restarted server. All is well now. (scared to test the /group though)
     
  9. Offline

    Spamandritz

    ok thanks and i also realized i read your answer wrong the first time...lol im done now
     
  10. Offline

    Wahrheit

    @DigitalTyrant You abandoned me last night. :(

    I'm still on Esper and Quake.
     
  11. Is there a simple way in this new setup to get someone's group name? I can't for the life of me figure it out...
     
  12. Offline

    LithiumFox

    Could you please maybe, idk, post an example of this?

    It's a great idea for a plugin, and honestly, the rank system will work perfectly as Teamspeak 3 uses the same ranking system (with numbers and such), but... more descriptive on the syntax would be nice....
     
  13. Offline

    BaconFace

    I have 4 worlds. With this plugin is it possible to have different permissions per world, but still be able to promote a user with one command?

    With GroupManager I have to type 8 commands (1 to select the world, 1 to promote the user, for each world) to promote one user. And that's hell. xD
     
  14. Offline

    Windwaker

    Can you set peoples groups while they are offline? I know with GroupManager you had to edit the users.yml because the person would have to be online to promote them.
     
  15. user -setperm u:name s:permission.node

    Gives this error:
    http://pastie.org/1878769

    However, it does actually work.

    PS. The op says the flag is -setperms, but that is a typo.
     
  16. Offline

    DigitalTyrant

    @leetgamer
    The ranks are here to stay, but the simpler commands are soon to be available through P2Aliases. Currently only one command there but there will be more. The ranks are a one time thing and can quickly be added manually to alleviate the long syntax to do it in game. Once they are set they're done.

    I think what he is referencing is this:


    To give your guest group a rank of 1 meaning the lowest of the low, you would use:
    /group -setinfo g:guest i:rank s:1

    @Joy

    This is an issue with the messages file. If you have not modified it, it is safe to delete and the plugin will create a new version. If you have modified it, I would change the name to messages.yml.bak, let the plugin recreate messages.yml and then copy your changes over.

    What happened is I introduced a few more messages in 2.0.2 and 2.0.3 that weren't in the original. When the plugin tries to reference those messages, it tosses this error. I am working on a fix to add any missing messages in 2.1 which I'm also working on a couple more additions.

    Sorry buddy, I will catch up with you later today if not, then for sure tomorrow. Not sure how much time I'll get today because of Mother's Day.

    For those of you that didn't realize, yes, it is Mother's day so go be nice to your mom for a bit, then come back and flame at me some more :)

    I use rank 1 for the group called Banned on my server. To set that I would use
    /group -setinfo g:Banned i:rank s:1

    I also use rank 99 for admin. No reason for the actual number of 99 just gives me some room to add ranks in between...
    /group -setinfo g:Administrator i:rank s:99

    Hope this helps.

    It still is a little tedious because you have to use 4 commands. But, I am working on an option to define multiple worlds:
    w:World1,Nether1,World2
    and also working on an all worlds option:
    w:*

    You are able to modify groups, users and settings for either while users are offline.

    When I introduced 2.0 to my server I was able to get all the ranks setup and move a couple people around with nobody on the server all from the console.

    The simple way to set the group name as an alternative to:
    /user -setgroup u:Username s:Group
    would be to use P2Aliases, a sub plugin for this one, which allows a simpler syntax:
    /groupset Username Group

    Where does is say -setperms? I will get this changed asap.

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

    BaconFace

    Thank you... *tears of joy*
     
  18. Offline

    leetgamer

    Thanks for clearing things up, I didn't understand what you were setting as lower/higher.

    Although I still don't understand why you made the easiest plugin one of the most complicated. It was a rather pointless change. :/ Just an opinion though.
     
  19. Thanks for the replies!

    In your: Example: /user -setperms u:GoodMod s:general.*
     
  20. Offline

    DigitalTyrant

    Ah, there it is. was looking for it earlier, couldn't find it. Nice catch, thanks!

    The increase in complication came because the plugin as it was, was very disorganized and the code was very inefficient which was the reason that people were having so many issues with exceptions.

    When I sat down and looked at the end goal for this plugin, the ability to administer every aspect of permissions from within the game, the best solution I could come up with is the framework that I implemented in version 2.0. After the public backlash from the increase in syntax, I did, however, author a supplemental plugin named P2Aliases which offers a simpler syntax for the commands and all it does is translate the arguments and issues the proper PermissionsPlus command.

    There are two goals for this plugin, allow the ability to control all aspects of Permissions and to do it easily. So now that I have the first one close to completion, the second one is slowly taking for in P2Aliases. Currently only allowing /groupset but there will be more to come soon.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  21. Offline

    leetgamer

    I think the public backlash mostly happened because we couldn't figure it out. Oh well, I guess this is a change that needed to take place and I'll get to learning how to use it. :)
     
  22. Offline

    Nipper

    With the new plugin how would I go about checking what the person group is? It used to be /group name but that no longer works with new commandline.
     
  23. Offline

    DigitalTyrant

    You are accurate. In 2.1 there you will have the ability to list groups, list users within a group, view a specific users group, and also view the info variables. I am also trying to add multiplay support but they aren't the most expedient people to work with.
     
  24. Offline

    Pippin

    Hey there, alright I have tried for an hour figuring this out. And I've practically destroyed my servers permissions. Can you please get this working? I can't /group because I don't have permission.. Here's my configs:
    Permissions Config (aka world.yml)
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Slave:
            default: false
            info:
                prefix: '[Slave]'
                suffix: ''
                build: false
                rank:1
            inheritance: null
            permissions:
            - lwc.blockinventory
        Default:
            default: true
            info:
                prefix: '[Guest]'
                suffix: ''
                build: false
                rank:2
            inheritance: null
            permissions:
            - essentials.help
            - essentials.rules
            - essentials.motd
            - essentials.msg
            - essentials.afk
            - essentials.me
            - essentials.list
            - essentials.compass
            - essentials.ping
            - essentials.mail
            - essentials.mail.send
            - essentials.spawn
        Builder:
            default: false
            info:
                prefix: '&3[Builder]&f'
                suffix: ''
                build: true
                rank:3
            inheritance:
            - Default
            permissions:
            - lwc.protect
            - essentials.sethome
            - essentials.home
        Moderator:
            default: false
            info:
                prefix: '&2[Mod]&f'
                suffix: ''
                build: true
                rank:4
            inheritance:
            - Builder
            permissions:
            - lwc.mod
            - magiccarpet.mc
            - essentials.burn
            - essentials.kill
            - essentials.mute
            - essentials.kick
            - essentials.ban
            - essentials.banip
            - essentials.unban
            - essentials.unbanip
            - essentials.clearinventory
            - essentials.clearinventory.others
            - essentials.spawnmob
            - essentials.reloadall
            - essentials.warp
            - essentials.nick
            - essentials.whois
            - essentials.tp
            - essentials.tphere
            - essentials.tppos
            - essentials.item
            - essentials.give
            - essentials.time
            - essentials.tree
            - essentials.jump
            - essentials.setwarp
            - permissions.group
            - worldedit.*
            - worldguard.*
            - bb.admin.*
            - weatherman.*
        Admins:
            default: false
            info:
                prefix: '&4[Admin]&f'
                suffix: ''
                build: true
                rank:5
            inheritance:
            - Moderator
            permissions:
            - essentials.warp.list
            - permissions.group.perms
        God:
            default: false
            info:
                prefix: '&9[Owner]&f'
                suffix: ''
                build: true
                rank:6
            inheritance:
            - Admins
            permissions:
            - '*'
    users:
        pippintoon:
            group: God
            permissions: null
        basicpaul:
            group: Admins
            permissions: null
        cassfrank:
            group: Moderator
        Hoppipzzz:
            group: Moderator
        Bonetwizt:
            group: Moderator
        Sledgomatic:
            group: Moderator
        Hedgz:
            group: Builder
        ehdgz:
            group: Builder
        taylorcrochet:
            group: Builder
        Krastusa:
            group: Builder
        TeeEnTee:
            group: Builder
        parkourrookie:
            group: Builder
        masterjcr:
            group: Moderator
        ericcmiller:
            group: Builder
        blockdude233:
            group: Builder
        matthewvelar:
            group: Builder
        balistickiller:
            group: Builder
        herr_chancellor:
            group: Builder
            permissions:
            - essentials.item
            - worldguard.god
        lolzismedz:
            group: Builder
        mommatroll:
            group: Builder
        <MommaTroll>:
            group: Builder
        dogmalol:
            group: Builder
        RetardedSquirtle:
            group: Builder
        retard:
            group: Builder
        blockdude:
            group: Default
        sizors:
            group: Builder
        SamChEN:
            group: Builder
        cornerprodigy:
            group: Builder
        slayer12545:
            group: Builder
            permissions:
            - magiccarpet.*
        yotujonoo:
            group: Builder
        capnxchaos:
            group: Builder
        joshmcclelland:
            group: Builder
        Tapdoor:
            group: Builder
        Mik3469:
            group: Builder
        heeelp5:
            group: Builder
        msw123:
            group: Builder
        rowinish:
            group: Builder
            permissions:
            - essentials.item
            - worldguard.god
        OPTIMUS_MIME:
            group: Builder
        qwerty1616:
            group: Builder
        JerBoss:
            group: Builder
        Aeioyou:
            group: Builder
    
    Please help!
    EDIT: I fixed it, just take out all the ranks and do it via the command, permissionsless.
    Here's what it SHOULD look like:
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Slave:
            default: false
            info:
                prefix: '[Slave]'
                suffix: ''
                build: false
                rank: 1
            inheritance: null
            permissions:
            - lwc.blockinventory
        Default:
            default: true
            info:
                prefix: '[Guest]'
                suffix: ''
                build: false
                rank: 2
            inheritance: null
            permissions:
            - essentials.help
            - essentials.rules
            - essentials.motd
            - essentials.msg
            - essentials.afk
            - essentials.me
            - essentials.list
            - essentials.compass
            - essentials.ping
            - essentials.mail
            - essentials.mail.send
            - essentials.spawn
        Builder:
            default: false
            info:
                prefix: '&3[Builder]&f'
                suffix: ''
                build: true
                rank: 3
            inheritance:
            - Default
            permissions:
            - lwc.protect
            - essentials.sethome
            - essentials.home
        Moderator:
            default: false
            info:
                prefix: '&2[Mod]&f'
                suffix: ''
                build: true
                rank: 4
            inheritance:
            - Builder
            permissions:
            - lwc.mod
            - magiccarpet.mc
            - essentials.burn
            - essentials.kill
            - essentials.mute
            - essentials.kick
            - essentials.ban
            - essentials.banip
            - essentials.unban
            - essentials.unbanip
            - essentials.clearinventory
            - essentials.clearinventory.others
            - essentials.spawnmob
            - essentials.reloadall
            - essentials.warp
            - essentials.nick
            - essentials.whois
            - essentials.tp
            - essentials.tphere
            - essentials.tppos
            - essentials.item
            - essentials.give
            - essentials.time
            - essentials.tree
            - essentials.jump
            - essentials.setwarp
            - permissions.group
            - worldedit.*
            - worldguard.*
            - bb.admin.*
            - weatherman.*
        Admins:
            default: false
            info:
                prefix: '&4[Admin]&f'
                suffix: ''
                build: true
                rank: 5
            inheritance:
            - Moderator
            permissions:
            - essentials.warp.list
            - permissions.group.perms
        God:
            default: false
            info:
                prefix: '&9[Owner]&f'
                suffix: ''
                build: true
                rank: 6
            inheritance:
            - Admins
            permissions:
            - '*'
    users:
        pippintoon:
            group: God
            permissions: null
        basicpaul:
            group: Admins
            permissions: null
        cassfrank:
            group: Moderator
        Hoppipzzz:
            group: Moderator
        Bonetwizt:
            group: Moderator
        Sledgomatic:
            group: Moderator
        Hedgz:
            group: Builder
        ehdgz:
            group: Builder
        taylorcrochet:
            group: Builder
        Krastusa:
            group: Builder
        TeeEnTee:
            group: Builder
        parkourrookie:
            group: Builder
        masterjcr:
            group: Moderator
        ericcmiller:
            group: Builder
        blockdude233:
            group: Builder
        matthewvelar:
            group: Builder
        balistickiller:
            group: Builder
        herr_chancellor:
            group: Builder
            permissions:
            - essentials.item
            - worldguard.god
        lolzismedz:
            group: Builder
        mommatroll:
            group: Builder
        <MommaTroll>:
            group: Builder
        dogmalol:
            group: Builder
        RetardedSquirtle:
            group: Builder
        retard:
            group: Builder
        blockdude:
            group: Default
        sizors:
            group: Builder
        SamChEN:
            group: Builder
        cornerprodigy:
            group: Builder
        slayer12545:
            group: Builder
            permissions:
            - magiccarpet.*
        yotujonoo:
            group: Builder
        capnxchaos:
            group: Builder
        joshmcclelland:
            group: Builder
        Tapdoor:
            group: Builder
        Mik3469:
            group: Builder
        heeelp5:
            group: Builder
        msw123:
            group: Builder
        rowinish:
            group: Builder
            permissions:
            - essentials.item
            - worldguard.god
        OPTIMUS_MIME:
            group: Builder
        qwerty1616:
            group: Builder
        JerBoss:
            group: Builder
        Aeioyou:
            group: Builder
    
     
  25. Offline

    DigitalTyrant

    @Pippin

    Ah, it looks like the plugin puts 'rank: 6' the only difference between the two files you pasted is the space between the colon and the #. Interesting.
     
  26. Offline

    Pippin

    Very weird. I noticed something else. It will say "Added variable to group "God." no matter what.. So I changed the rank variable for Builder and Moderator, etc... still changing it for God. Thats a pretty simple glitch to fix I'd imagine.
     
  27. Offline

    crohakon

    The ranking system is nice, but we use multi-tiered "classes" based on cities, et cetera. So the promote / demote option does not really work for us. Is there a way we can disable this and NOT have to deal with the rank options?
     
  28. Tyrant, you've been quite helpful so far, do you perhaps have an idea how to add a great deal of nodes, automatically, to Permissions?

    I tried scripting and using the console commands of this plugin, but even adding like 20 nodes , and after each console command waiting for 2 seconds, killed the server. It does not seem to handle that too well. Possibly due to the automatic config reload after each addition?

    I have tried using a PHP-yaml library, but those write different YAML than the type Permissions uses...so much for standards. I guess you do not use a library either.
     
  29. Offline

    Wahrheit

    Going to school now, I'm AFK and will be available at about 2PM GMT-8, maybe earlier.
     
  30. Offline

    LithiumFox

    I'm just wondering if there is any chance you could setup the rank via the config file, not via a command?

    just for future reference. :) (cause copy and paste is faster than using a command over and over xD)
     
  31. Offline

    Wahrheit

    It goes on the same sort of indentation with prefix and suffix in your permissions YAML file.

    ex:
    rank: 1
    prefix: [myprefix]
    suffix: [supersuffix]

    etc etc.
     

Share This Page