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

    zaklampje

    No, I'm not...
     
  3. Offline

    DigitalTyrant

    Permissions does not have the option to set the default group via API so no, it won't because I modify the file manually. If the API call becomes available I will make the switch. There might be one or two other commands that are this way as well.

    The change log @ MyMcHost.com has all of the previous versions available for download. The last release for Permissions 2.x is P+ v2.3

    Most all of the commands will work with the SQL storage option in Permissions. There are a few that will not due to limitations in the Permissions API

    You can use the command
    Code:
    /groupset Username Groupname Worldname
    this command will remove all other groups and set the group for that user to the Groupname that you specified.
    Code:
    /groupadd Username Groupname Worldname
    Will just add another group to the user

    yes, groupset wipes all groups and sets just the one specified. Groupadd will add another group to the user.

    For promote, if users are in more than one group, the highest ranking group is removed and the next group added leaving all other remaining groups. If the user is in only 1 group, then that group is removed and the next group becomes the only group that the user will be in.

    All of the Permissions for the commands are available at MyMcHost.com under the Usage section for PermissionsPlus.

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

    amunro

    Thanks mate!
     
  5. Offline

    Darcion

    i think promote/demote is with P 3.1.6 broken again. My Team get "you cannot promote to your current rank"

    but it worked before
     
  6. Uh, what command is that?
     
  7. Offline

    DigitalTyrant

    I haven't done any testing with 3.1.6 I will look into any potential issues

    /groupset or /groupadd

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

    frostyfrog

    According to milkAdmin:
    DefaultCommands 3.5.0
    Permissions 3.1.6 (used to be 3.1.5b, same problem but worse (maybe cause I also had BigBrother when I did my first test?))
    PermissionsPlus 3.2
    PermissionsSQL 1.3
    p2Aliases 1.3
    Code:
    >dchelp 9
    11:53:00 [INFO] Page 9 of 9:
    11:53:00 [INFO] /pr | Displays Permissions Info
    /pr -reload | Reloads the...
    11:53:00 [INFO] /group -<Action> g:[Group] i:[InfoVariable] w:[World] s:[...
    11:53:00 [INFO] /user -<Action> u:[User] i:[InfoVariable] w:[World] s:[Se...
    11:53:00 [INFO] /promote <MemberName> [World]
    11:53:00 [INFO] /demote <MemberName> [World]
    11:53:00 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'dchelp' in plugin DefaultCommands v3.5.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:296)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at com.vildaberper.DefaultCommands.Command.Help.help(Help.java:59)
            at com.vildaberper.DefaultCommands.DefaultCommands.onCommand(DefaultCommands.java:194)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more
    >
     
  9. Offline

    DigitalTyrant

    if you open the P2Aliases.jar and edit the plugin.yml, there is a blank line at the end of the file. That might be what is causing it. The 4 commands listed, /group /user /promote and /demote, are the only 4 commands in PermissionsPlus so I think it may have to do with p2aliases.
     
  10. Offline

    frostyfrog

    That was it, Thanks! =D
     
  11. Offline

    DigitalTyrant

    Sweet, np. You won't have to do that next release, I will make sure I remove that line before I compile haha
     
  12. But i dont want to set or add groups, i want to view current groups that a user already has.
     
  13. Offline

    DigitalTyrant

    Code:
    /user -getgroups u:Username w:Worldname
     
  14. Offline

    Nick Hooper

    Is it possible to disable usage by OP's?

    The ranks i have are:

    Default - Can't really do anything
    Member - Your cool now
    Officer - You have OP/can fly
    Moderator - Officer + more
    Admin - Everything

    Since officers get OP they can set there own group and change themselves to anything they want so DERP
     
  15. Offline

    DigitalTyrant

    There would be a way to disable it, but functionally for most people being an OP means you should have access to administer the server in any way necessary. I plan to leave this behavior as default but I may end up adding an option to disallow OPs.
     
  16. Hey I just got a little problem ^^

    when ever I start the server or reload the plugins I get this:
    Code:
    16:21:42 [SEVERE] Error occurred while enabling PermissionsPlus v3.2 (Is it up to date?): tried to access field net.minecraft.server.PropertyManager.properties from class net.codej.permissionsplus.PermissionsPlus
    java.lang.IllegalAccessError: tried to access field net.minecraft.server.PropertyManager.properties from class net.codej.permissionsplus.PermissionsPlus
            at net.codej.permissionsplus.PermissionsPlus.onEnable(PermissionsPlus.java:89)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
            at com.bekvon.bukkit.plugman.PlugMan.enablePlugin(PlugMan.java:338)
            at com.bekvon.bukkit.plugman.PlugMan.reloadPlugin(PlugMan.java:352)
            at com.bekvon.bukkit.plugman.PlugMan.doCommand(PlugMan.java:133)
            at com.bekvon.bukkit.plugman.PlugMan.onCommand(PlugMan.java:65)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:428)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:413)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    And while unloading the plugin or stopping the server I just get this message:

    Code:
    16:21:42 [SEVERE] Error occurred while disabling PermissionsPlus v3.2 (Is it up to date?): null
    java.lang.NullPointerException
            at net.codej.permissionsplus.PermissionsPlus.sendMessage(PermissionsPlus.java:1267)
            at net.codej.permissionsplus.PermissionsPlus.onDisable(PermissionsPlus.java:116)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:820)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
            at com.bekvon.bukkit.plugman.PlugMan.disablePlugin(PlugMan.java:320)
            at com.bekvon.bukkit.plugman.PlugMan.reloadPlugin(PlugMan.java:351)
            at com.bekvon.bukkit.plugman.PlugMan.doCommand(PlugMan.java:133)
            at com.bekvon.bukkit.plugman.PlugMan.onCommand(PlugMan.java:65)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:428)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:413)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    And using the PermissionsPlus commands isn't working either

    I hope someone can help me with this problem ^^
     
  17. Offline

    DigitalTyrant

    What Bukkit Version are you using? v3.2 requires RB928+
     
  18. @DigitalTyrant Can you please check my small problem below :)

    I can't use /promote or /demote command, it shows the error below:
    User ranks, group, everything are configured properly, checked using YAML Parser.

    I'm using Bukkit Build 935.

    PermissionsPlus is working correctly, but i need those p2aliases command for the staff (Moderator). :(


    Code:
    2011-06-29 09:55:44 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'promote' in plugin PermissionsPlus v3.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at net.codej.permissionsplus.PermissionsPlus.highestRankGroup(PermissionsPlus.java:1449)
    at net.codej.permissionsplus.PermissionsPlus.onCommand(PermissionsPlus.java:1133)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  19. Offline

    DigitalTyrant

    can you post the Users.yml for the world and user that you are attempting to promote?
     
  20. This is the users.yml, its too long so i upload to pastebin.com :p
    http://pastebin.com/U0Teir4p
     
  21. Offline

    DigitalTyrant

    what user are you attempting to promote?
     
  22. A new users ( Guest)
     
  23. Offline

    DigitalTyrant

    Ah, yes. That is a bug that I meant to address in the last update and apparently missed. I will make sure a fix makes it into the next release.
     
  24. Great :D any ETA for the next release ?
     
  25. Offline

    DigitalTyrant

    As of this moment, no. I need to do some testing with the latest version of Permissions and working on plugins for myBukkitAdmin. But if nothing else I will release a quick fix update before the end of the week.
     
  26. Offline

    Mhalkyer

  27. Offline

    Xadrian

    Hi!

    I've just hooked permissions into my application, now I want to change player's group - how can I do that?
     
  28. It seems to me that current command syntax is overly complex and long.

    Code:
    
    Suggestion:
    /p2u <user> <+ OR - OR # OR ?><string> <optional value/worlds>
    /p2g <group> <+ OR - OR # OR ?><string> <optional value/worlds>
    
    Examples:
    /p2u DigitalTyrant  :  List all groups and notes for user in default/current world.
    /p2u DigitalTyrant world2 : List all groups and notes for user in world2.
    /p2u DigitalTyrant +Admin -User : Add Admin group, Remove User group from user in current/default world.
    /p2u DigitalTyrant +Admin -User world1 world2 : Same, but only in world1 and world2
    /p2u DigitalTyrant #Warn Thief : You mister, got info attached to your user record, and it aint good :p
    /p2u DigitalTyrant +Admin -User world1 world2 #Note Flexibility : Change groups, set info.
    /p2u DigitalTyrant ?note : Lookup note variable for user and return value.
    
    /p2g Admin +DigitalTyrant -Sorken : reverse, kinda.
    /p2g Admin +DigitalTyrant -Sorken world1 world2 : reverse, kinda for world1 and world2
    /p2g Banned #Warn Thieves : Set variable Warn to contain Thieves in default/current world
    /p2g Banned #Warn "" : Deletes variable Warn.
    /p2g User ?rank : Lookup rank variable for User group and return value in default/current world
    /p2g Admin #rank 10 ?rank : set and verify in default/current world.
    
    Comparison:
    /user -addgroup u:DigitalTyrant s:Admin,Trusted
    /p2u DigitalTyrant +Admin +Trusted
    
    /group -setinfo i:test g:Banned s:Criminals w:world1
    /p2g Banned #test Criminals world1
    
    Aside from being more compact, you can stack operations like changing groups and notes. If feeling particulary daring you could add = aswell and have it act like -setgroups.
    
    
     
  29. Offline

    DigitalTyrant

    I like some of this. This project was supposed to be a small temporary venture which has turned into a massive time consuming plugin beast lol. If it continues much further beyond its current state, I may implement a simpler syntax similar to the one you posted. It's not that I don't like what you've done here it's just the time to implement is more than I want to spend on this project atm. The reason I went to the syntax that is currently in use is because all arguments beyond the action are transposable which allows for less error checking and validation on the back end - which I was getting lost in with the original syntax. I do like the way you have arranged things tho.
     
  30. Offline

    BaconFace

    Does this plugin allow me to give an individual user a permission ingame? If not, will you consider adding that feature to the next update?
     
  31. Offline

    DigitalTyrant

    yes, it does. All of the commands are at http://www.mymchost.com/hosted/development.php#p2_usage
    the command to do it is
    Code:
    /user -setperm u:Username s:Permission w:World
    world is optional
     

Share This Page