[IDEA/REQUEST] Plugin for viewing all usable permission nodes

Discussion in 'Archived: Plugin Requests' started by foldagerdk, Jan 5, 2012.

?

Would you use this plugin for your server?

  1. Yes

    100.0%
  2. I don't know

    0 vote(s)
    0.0%
  3. No

    0 vote(s)
    0.0%
Thread Status:
Not open for further replies.
  1. Offline

    foldagerdk

    A plugin for viewing all usable permission nodes
    My request: I really need a plugin that can show me all the permission nodes I can use. It would be so much easier for a server owner if he could have a plugin generate a file automatically when permission nodes is registered. As I am not a bukkit developer I don't know if it is possible, but as I do have experience as a java coder I think that it is.

    How I think it should work:
    A server owner or admin/moderator should be able to type in a command like /permgen, /allperms or /permissionnodes. Then the plugin should generate a file in either the core or the plugins folder. Now the owner can view all permissions. But if admins/moderators should be able to use it in-game that would require the plugin to be able to show all permission nodes sorted in pages as they can't all be listed on the screen any way else.

    Thanks for reading my thread. If you use this idea, please create a link on the plugin page that leads to this thread. Also please reply with your opinion on this idea!
     
  2. Offline

    dadaemon

    This is funny. Was working with permissions yesterday and it's very easy to get all the registered permissions from Bukkit.

    Code:
    Set allPerms = this.getServer().getPluginManager().getPermissions();
    If someone wants to pick this up all you need is the above code. This will place all the permissions inside a Set. If no one want's to pick this up I could probably make something this weekend.
     
    Royal_Soda likes this.
  3. Offline

    foldagerdk

    Thanks a lot :)
     
  4. Offline

    honam1021

    Just give them permissions to access /pex user if you use PermissionsEX.They could view their own permissions.
     
  5. Offline

    mikeyagoto

    This would make life as a server owner easier... I have found myself searching through the plugins for those permission nodes from that plugin i downloaded a month or more ago haha
     
  6. Offline

    foldagerdk

    I'm not talking about viewing the permissions you have. I'm talking of viewing all permissions available for use.

    Exactly!
     
  7. Offline

    -_Husky_-

    I might make it.
     
    Royal_Soda likes this.
  8. Offline

    foldagerdk

    Thank you -_Husky_- :)
     
  9. Offline

    dadaemon

    Go go @-_Husky_- . You know how to get in touch with me if you need help. But don't think this is something that hard :)
     
  10. Offline

    -_Husky_-

    Thanks @dadaemon

    Only issue, the in-game list, not sure how I could sort them, any ideas @dadaemon

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

    codename_B

    alphabetically?
     
  12. Offline

    -_Husky_-

    like /permlist <1>
    then have them print in 5's
     
  13. Offline

    dadaemon

    You could just use a SortedSet like a TreeSet.

    Set<String> set =
    new
    TreeSet<String>();


    Everything put into this set is automaticaly sorted. (See: http://www.kodejava.org/examples/277.html)
    If you sort it alphabetically it also groups the permissions per plugin.

    And showing the perms in game is just not doable. The permission strings are just too large. I should focus on the export first.
     
  14. Offline

    foldagerdk

    @-_Husky_- Also, a permission for using the plugin would be nice :)

    Oh. But a plugin witch exports it would still be nice :)
     
  15. Offline

    -_Husky_-

    that's what i was thinking, lol anyway, will work on it soon.
     
  16. Offline

    TaggerPlanet

    From what I can tell you are simply requesting a plugin that will display all permission nodes? Well this plugin puts them all into a text file fore you to copy and paste! You just can't view them In-Game?
     
  17. Offline

    foldagerdk

    Thank you <333

    But does it work for 1.2.5?
    Because on the thread it says [1185]
     
Thread Status:
Not open for further replies.

Share This Page