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

    Nemesis_Q

    Could somebody just briefly explain to a newb how to set up a simple group? :)
     
  3. Offline

    DigitalTyrant

    the rank system has always been in this plugin, the only difference is I gave it a tangible setting rather than relying on the definition order in the YML. I'm not exactly sure what issues you're experiencing but you can use the /groupset command in P2Aliases as an alternative to /promote and /demote.

    The other function of the ranks is to limit how high a group is able to promote, demote, and set groups as well.

    The plugin loads and saves your YML with each command and it also runs /permissions -reload world. I use the SnakeYAML library if that helps.

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

    SirHedgehog

    v2.0.3 works well but the message is reporting the wrong group when setting ranks (always reported the last one in the file). Despite this, it does set the correct group.
     
  5. Offline

    DigitalTyrant

    Wahrheit has it right. the rank is an item under group:info: it shares the same tier as prefix: suffix: and build: which may already exist in your group definitions. The key rank has to be lowercase and requires a space after the : before the numeral setting.

    Here are the commands to setup the first two groups in my Permissions. Hopefully this will help you.

    Code:
    Banned:
            default: false
            info:
                prefix: '&4Banned&f '
                suffix: null
                build: false
                rank: 1
            inheritance: null
            permissions: null
        Guest:
            default: true
            info:
                build: true
                prefix: '&8Guest&f '
                suffix: null
                rank: 2
            inheritance: null
            permissions:
            - general.player-info
            - general.help
    Code:
    /group -add s:Banned
    /group -setinfo g:ba i:prefix s:&4Banned&f&s
    /group -setinfo g:ba i:build s:false
    /group -setinfo g:ba i:rank s:1
    
    /group -add s:Guest
    /group -setinfo g:gu i:prefix s:&8Guest&f&s
    /group -setinfo g:gu i:build s:true
    /group -setinfo g:gu i:rank s:2
    /group -setperm g:gu s:general.player-info
    /group -setperm g:gu s:general.help
    
    I have not experienced this. Another person was having this happen tho. What commands can you use that duplicate this behavior? Do you have custom messages setup?

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

    tommy99

    whre have i to write the info variable can someone show it to me with an example?

    i need a littel TUT for dummies how to install the plugin
     
  7. Offline

    SirHedgehog

    All defaults. Got it in game and in the console.
     
  8. Offline

    DigitalTyrant

    what commands have you experienced this issue with?

    We are working on some advanced documentation explaining basic and situational usage. Until then, how far have you gotten?

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

    SirHedgehog

    I said in the first post. I have only seen it using: /group -setinfo
     
  10. Offline

    Lanuk

    I take everything I said earlier back, I can't figure out this new version of permissions :p

    How exactly would I promote players to different ranks. I tried setting the 1-100 thing for groups, but when I tried to set any of them to "1" it said admin instead of the rank I wanted to be 1. I am just really confused, I have tried reading all the commands and such. Could someone give me the commands that would allow me to finally be able to promote players?
     
  11. Offline

    DigitalTyrant

    Are you using command like:
    /group -setinfo g:Banned i:rank s:1
    /group -setinfo g:Administrator i:rank s:99

     
  12. Offline

    Lanuk

    When I do that (yes I have the caps right) it will say something like this (assume Guest and Admin are my only ranks).

    [PermissionsPlus] Group Guest does not have a rank defined.
    [PermissionsPlus] Group Admin does not have a rank defined.
    [PermissionsPlus] Some groups do not have a rank defined, so some commands are disabled.
    [PermissionsPlus] Variable rank has been set to 2 for group Admin in World world.

    What I have tried?

    /group -setinfo g:Guest i:rank s:1
    /group -setinfo g:Guest i:rank w:world s:1 (if I do this, the variable admin thing doesnt show up, but everything up to "Some groups do not..." do.)

    What am I doing wrong? Oh and thanks for the super quick reply, I was afraid I would get none at all :p
     
  13. Offline

    DigitalTyrant

    Ah, some other users are reporting an error in the return message. Can you copy in your Permissions' yml file so we can see if they are actually getting updated?
     
  14. Offline

    Lanuk

    OH, let me try and delete the folder and let it remake itself again. If that doesn't work ill post it. Thanks!
     
  15. Offline

    DigitalTyrant

    sounds good. 2.1 is ready for deployment which should fix the issue with the inaccurate message. I am just trying to work out a bug with the Multiplay support.
     
  16. Offline

    TJstriker

    for some reason when i do the /promote and /demote, it says its successful and they have been promoted, and i check the permissions file, and it says there in the right group, but in chat, there prefix doesn't change.
    i did /promote flare
    but flare doesnt have any of the permissions, and the prefix hasnt changed. if you could point me in the direction of where the error is, that would be great
     
  17. Offline

    DigitalTyrant

    Sounds like it's not reloading the permissions... I will check and see if there are any issues in the code. Haven't been able to reproduce this though.
     
  18. Offline

    TJstriker

    could it be that there are conflicting chat plugins? i have Ichat and herochat, not sure if that has anything to do with the prefix not changing
     
  19. Offline

    DigitalTyrant

    I use iChat but I have heard of a couple issues with herochat. If you would test it, I would appreciate it.
     
  20. Offline

    TJstriker

    not possible, i just removed ichat and same problem with the prefixes in chat
    heres my config for permissions
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            default: true
            info:
                prefix: '[Starter]'
                suffix: ''
                build: false
                rank: 1
            inheritance: null
            permissions:
            - foo.bar
            - essentials.help
            - essentials.rules
            - essentials.motd
            - essentials.help
            - multiverse.spawn
            - essentials.msg
            - essentials.list
            - multiverse.world.spawn
            - essentials.ping
        Moderator:
            default: false
            info:
                prefix: '&3[Mod]'
                suffix: ''
                build: true
                rank: 5
            inheritance:
            - Architect
            permissions:
            - bar.foo
            - essentials.ban
            - essentials.mute
            - essentials.kick
            - essentials.setwarp
            - essentials.delwarp
            - essentials.tp
            - essentials.clearinventory
            - essentials.ext
            - essentials.unban
            - essentials.togglejail
            - essentials.setjail
            - essentials.deljail
            - essentials.jails
            - essentials.invsee
        Admins:
            default: false
            info:
                prefix: '&4[Admin]'
                suffix: ''
                build: true
                rank: 6
            inheritance: null
            permissions:
            - '*'
        Resident:
            default: false
            info:
                prefix: '[Starter]'
                suffix: ''
                build: true
                rank: 3
            inheritance:
            - Default
            permissions:
            - foo.bar
            - essentials.help
            - essentials.rules
            - essentials.motd
            - essentials.help
            - multiverse.spawn
            - essentials.msg
            - essentials.list
            - multiverse.world.spawn
            - supplysign.acess
            - essentials.sethome
            - essentials.home
            - essentials.warp
        Architect:
            default: false
            info:
                prefix: '[Starter]'
                suffix: ''
                build: true
                rank: 4
            inheritance:
            - Resident
            permissions:
            - essentials.give
            - foo.bar
            - essentials.help
            - essentials.rules
            - essentials.motd
            - essentials.help
            - multiverse.spawn
            - essentials.msg
            - essentials.list
            - multiverse.world.spawn
            - supplysign.acess
        Inmate:
            default: false
            info:
                prefix: '&8[INMATE]'
                suffix: ''
                build: false
                rank: 2
            inheritance: null
            permissions:
            - foo.bar
    users:
        Shogun:
            group: Admins
            permissions: null
        Herpina:
            group: Moderator
            info:
                prefix: Moo
                suffix: Cow
            permissions: null
        Derpina:
            group: Admins
            permissions: null
        UAV:
            group: Resident
        bob51ism:
            group: Moderator
        Skoran:
            group: Architect
        Skinro:
            group: Architect
        Cereal:
            group: Resident
        SylverLight:
            group: Inmate
    
    as you can see, the very bottom users are the ones i am promoting with /promote, it says they are the right rank but its not changing the prefixes or permissions
     
  21. Offline

    DigitalTyrant

    try typing /permissions -reload all
    I will look into HeroChat and see if I can identify a way to interact with it.
     
  22. Offline

    TJstriker

    i tried typing /permissions -reload all, but nothing changed. i cant tell if its the chat plugin or permissions

    wow, i'm sorry to take your time up, but i forget to edit the names in the permission config, so they realy were architects, etc, but they had the "starter" for there perfix....god i'm stupid, sorry ^.^

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

    DigitalTyrant

    lol, didn't even look at that, Glad you got it all worked out!
     
  24. Offline

    TJstriker

    i have another question, how would i make it so my mods and admins can use the /promote and /demote commands?(but only up to there rank, not further) are there "Node" codes like the other plugins?
     
  25. Offline

    Lanuk

    Okay, yep, still didn't work. But fix the inaccurate message or inaccuruate action as well? I don't think anything is really happening... and this is really urgent since my mods need to be able to promote :/
     
  26. Offline

    DigitalTyrant

    Are there any errors in the console?

    The way I developed this plugin is a group can only promote users up to the rank 1 below their current. As well, they can only demote players that are currently at least one rank below.

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

    Lanuk

    Ehh, nope. I have some java error occasionally but I highly doubt it has anything to do with this.

    Code:
    [SEVERE] java.net.SocketException: Connection reset by peer: socket write error
    2011-05-09 22:21:14 [SEVERE]     at java.net.SocketOutputStream.socketWrite0(Native Method)
    2011-05-09 22:21:14 [SEVERE]     at java.net.SocketOutputStream.socketWrite(Unknown Source)
    2011-05-09 22:21:14 [SEVERE]     at java.net.SocketOutputStream.write(Unknown Source)
    2011-05-09 22:21:14 [SEVERE]     at java.io.DataOutputStream.write(Unknown Source)
    2011-05-09 22:21:14 [SEVERE]     at net.minecraft.server.Packet.a(Packet.java:120)
    2011-05-09 22:21:14 [SEVERE]     at net.minecraft.server.NetworkManager.e(NetworkManager.java:96)
    2011-05-09 22:21:14 [SEVERE]     at net.minecraft.server.NetworkManager.d(NetworkManager.java:230)
    2011-05-09 22:21:14 [SEVERE]     at net.minecraft.server.NetworkWriterThread.run(SourceFile:90)
     
  28. Offline

    DigitalTyrant

    yea, not related. that's the basic exception that happens when users close the client without properly logging out.

    Let me look at a couple things.
     
  29. Offline

    Lanuk

    Just to make things clear I just downloaded the 740 version, got 740 cb, and did nothing else. Oh and I deleted the PermissionsPlus folder and let it remake itself. Was there something else to download/do?
     
  30. Offline

    DigitalTyrant

    Not exactly sure where the problems lies yet so not sure if there's anything else you can do atm. Are you using v2.0.3?
     
  31. Offline

    PacketCollision

    I have certain groups that are not actually directly used by any users, but rather are sets of standard permissions that multiple groups inherit. I would like to use the promote/demote commands, but I don't want these "template" groups to be a part of the hierarchy. Currently, I just gave them negative ranks, hoping that would disable them (it actually just ranks them below 1). I would like to request a way to remove certain groups from the hierarchy. Making all negative numbers ignored seems like a simple option.
     

Share This Page