[INACTIVE][MISC] P2Aliases v1.1 - Adds aliased commands to PermissionsPlus [766]

Discussion in 'Inactive/Unsupported Plugins' started by DigitalTyrant, May 7, 2011.

  1. Offline

    DigitalTyrant

    P2Aliases - Adds aliased commands to PermissionsPlus

    Updated: 5/20/2011
    Version: 1.1 [jar]
    CraftBukkit: [b766jnks]
    Description:
    Adds simplified syntax for PermissionsPlus commands​
    REQUIRES: PermissionsPlus 2.0+

    Files:
    p2aliases.jar: Main plugin file


    Commands (open)
    REQUIRED: <> OPTIONAL: []

    /groupset <MemberName> <GroupName> [WorldName]
    Translates To: /user -setgroup u:MemberName s:GroupName w:WorldName

    /rankset <GroupName> <Rank#> [WorldName]
    Translates To: /group -setinfo i:rank g:GroupName s:Rank# w:WorldName

    Change Log (open)
    Version 1.1 - [jar]
    5/20/2011
    -Added /rankset command
    MD5: b2c2c06c2fed036148859c53f39ab188

    Version 1.0 - [jar]
    5/7/2011
    -Added /groupset command
    MD5: bc11fbb000eb90987b71d4aed12d701c


    Thanks and Enjoy!
     
  2. Offline

    Juze

  3. Offline

    DigitalTyrant

    hmm... i thought
    is a pretty clear description...

     
  4. Offline

    Lookatmego

    sorry im kinda confused what does this exactly do?
     
  5. Offline

    DigitalTyrant

    it allows you to use the /groupset command instead of the extended /user command.
    In PermissionsPlus 2.0+ you have to type
    /user -setgroup u:Username s:Group w:World​
    this plugin allows you to accomplish the same thing by typing:
    /groupset Username Group World​
     
  6. Offline

    StCloud

    Awesome! This helps alot. Promote and demote were great, but this is less of a hassle.
     
  7. Offline

    Nytemare3701

    Code:
    2011-05-08 15:43:11 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'groupset' in plugin p2Aliases v1.0
     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:255)
     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:195)
     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 net.codej.permissionsplus.PermissionsPlus.rankOf(PermissionsPlus.java:1041)
     at net.codej.permissionsplus.PermissionsPlus.onCommand(PermissionsPlus.java:736)
     at net.codej.p2aliases.P2Aliases.onCommand(P2Aliases.java:55)
     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
     ... 12 more
    CB 740
     
    Aleyasu likes this.
  8. Offline

    DigitalTyrant

    You have to set you ranks using PermissionsPlus or manually edit the Permissions file to include rank:1 increasing with authority for each group in the info: section.

    you can set the group's rank within the game using:
    /group -setinfo g:Guest i:rank s:1
    /group -setinfo g:Admin i:rank s:99

    and anything in between for the other groups.
     
  9. Offline

    Nytemare3701

    Double checked. Every group has a rank (though many of them are the same, is that a problem?)
     
  10. Offline

    DigitalTyrant

    There is no issue with sharing ranks, no. This does limit the Promote and Demote commands as all of the groups except one that share the rank will be accessible via promote and demote and even then the results may vary.

    Did you set the ranks manually or using a command? can you post one of the group definitions?
     
  11. Offline

    Nytemare3701

    Code:
    Credited:
            default: false
            info:
                prefix: null
                suffix: null
                build: true
                rank: 1
            inheritance:
            - Peasant
            permissions: []
    Manually for some, command for others (to be complete about it.)
     
  12. Offline

    DigitalTyrant

    do all of the groups have the 'rank' info variable? rank has to be lowercase, and the space after the colon is required.
     
  13. Offline

    bleepbleep

    I am a noob here and i want to know how to use permissions in the first place
    Code:
    users:
        fogWraith:
            group: Admins
            permissions:
    
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
    Bleepbleep:
           group: Admins
            permissions:
                - 'nocheat.*speedhack'
                - 'nocheat.*moving'
                - 'nocheat.*flying'
    was wondering how do i give myself permissions in the first place Sorry for being a noob :(
     
  14. Offline

    DigitalTyrant

    From the looks of what you posted, all line starting at Bleepbleep need spaces added to the front of them so that fogWraith, Herpina, Derpina, and Bleepbleep all have 4 spaces in front of them.

    There is a wiki for the actual Permissions plugin available here.
     
  15. Offline

    Aleyasu

    Exact same problem here...
     
  16. Offline

    Nytemare3701

    yes, yes, and yes. Would you prefer that I PM you the entire thing?
     
  17. Offline

    DigitalTyrant

    The only thing this plugin does is take your arguments and form them into a command for PermissionsPlus. Looking at the error that you received it appears that you may be missing the rank setting for your groups. I would set ranks and try again.

    Are you running PermissionsPlus v2.1?

    Possibly, can you install PermissionsPlus v2.1 and see if this still happens?

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

    Aleyasu

    I am runnning the latest PermissionsPlus, and yes, all ranks are set correctly, just to be sure, i double checked it/reinstalled... Still the same problem.
     
  19. Offline

    DigitalTyrant

    Have you tried 2.1.1? I found an issue in the code where groups were getting read incorrectly. Hopefully this will fix the issue you're having
     
  20. Offline

    Aleyasu

    Ok thanks, ill try it asap
     
  21. Offline

    beecub

    Mh, this plugin does only convert one command?
    Sry, but this is not very useful i think.

    You can use bShortcut to do this for all commands, not only one.
     
  22. Offline

    Plague

    please update to latest recommended CB
     
  23. Offline

    Nytemare3701

    CB 766, when any non- * permission player tries to use groupset.

    Code:
    2011-05-16 16:18:27 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'groupset' in plugin p2Aliases v1.0
        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:682)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
        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:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at net.codej.permissionsplus.PermissionsPlus.rankOf(PermissionsPlus.java:1230)
        at net.codej.permissionsplus.PermissionsPlus.onCommand(PermissionsPlus.java:915)
        at net.codej.p2aliases.P2Aliases.onCommand(P2Aliases.java:55)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
     
  24. Offline

    DigitalTyrant

    Let me do some testing.
     
  25. Offline

    Windwaker

    One of the most useful plugins I have, I even suggested it to a friend :)

    Wait, why is this still in this section? Hmmm... strange... :/
     
  26. Offline

    Windwaker

    permissions?
     
  27. Offline

    Jeyge

    I would guess it would be the same permissions as PermissionsPlus. All it does is remove the g: and other new prefixes from the PermissionsPlus command.
     
  28. Offline

    Plague

    changelog has to show latest two versions without a spoiler
     
  29. Offline

    captainawesome7

    And maybe update to latest RB? And the use of a spoiler for one command should be some sort of crime.
     
  30. Offline

    DigitalTyrant

    It's funny the criticism about the organization of the main post, seeing as how the other two plugins I've released are of the same format. :-/
     

Share This Page