PermissionsManager

Moved

Total Downloads: 4,273 - First Release: Sep 18, 2017 - Last Update: Jan 5, 2018

5/5, 27 likes

  1. ok, now i understand, but then the plugin will be misstanding by users, then if i go with /perms group admin and i see my admin perimssion, i think, i can give or revoke any permissions only in this task
    [DOUBLEPOST=1505905914][/DOUBLEPOST]iam not bad about u, u make wonderfull job with ure plugins, but most its very difficult for german people here ... everything is ok :) sorry for all my trouble :)
     
  2. You know what, I agree, but it's no different than if you were typing the commands out by hand.
    IDK, maybe i'll put in a help button explaining it.

    Names will be auto-converted to lower-case in the next version. Thanks for pointing that out. :)
    [DOUBLEPOST=1505906452][/DOUBLEPOST]
    No probs, and thank you. :)

    Think of it this way,
    if you have godmode permissions as a player,
    and you are in group admin
    and group admin has godmode permissions

    You effectively have godmode permissions twice, see?

    By taking godmode away from the group, you aren't affecting any player's personal permissions.
     
    Last edited by a moderator: Sep 20, 2017
  3. ... but dont understand, if only admin has permission god, why i must revoke it in group default = player too ?
     
  4. What is your name in game ?
     
  5. Nick Thyxtain
     
    1. 'Grant user "Nick Thyxtain" godmode.admin' – You (personally) have this permission, regardless of anything else.

    2. 'usergroup add "Nick Thyxtain" admin' – You are now in the admin group

    3. 'grant group admin godmode.admin' – Players in the group 'admin' are afforded this permission.

    4. 'Revoke group admin godmode.admin' – Players in the group 'admin' are no longer afforded this permission.

    If you were run these four commands in order you (personally....as a player) would have godmode permissions.

    Line 1 is not affected by the other lines.


    Solution = 'revoke user "Nick Thyxtain" godmode.admin'

    which is the equivalent of typing /perms player "Nick Thyxtain" and clicking revoke for godmode.
     
  6. ... that all i understand, but u dont understand me :) but its ok !
     
  7. I'm not sure what you mean here.
    Default group isn't involved.
     
  8. again: i dont understand, why i must click in 2 task: first player and then group or other side = /perms player "Nick Thyxtain" and /perms group admin and must then revoke 2 times?
     
  9. because, in your case, the player has the permission and the group has the permission.
    Those are two unrelated statements.

    This is what I've explained in #26

    @Fujikura - help?
    [DOUBLEPOST=1505911226][/DOUBLEPOST]Technically I could make the plugin revoke permissions for a group, and also for all the players in that group (if they have it) in one click,
    but that would change how the system works and, honestly, probably cause more confusion.

    If you're saying you understand how it works but not why, I apologise.
    The why is simply because at some point prior to this plug, someone assigned you (as a player) godmode privs.
    Adding you to/removing you from groups does not alter that, whether by GUI or text command.


    If you added some brand new plug (called plugin, let's say), gave admin-group the privs to use it, then took yourself out of the admin group, you would no longer be allowed to use 'plugin'.
     
    Last edited by a moderator: Sep 20, 2017
  10. Hey, @Steenamaroo, nice plugin!
    Great job!
    Honestly, personnly I prefer to do everything in console, so... =)
    But the idea and realization is great!
    [DOUBLEPOST=1506008863][/DOUBLEPOST]Also - why MenuOpen is just a single bool for the whole plugin? What if there is 2 admins using htis GUI at the same time?
    I think it would be better to store the list of the players, who has the menu opened =)
     
  11. I think there's a bool or two in there no longer being used so I need to do a tidyup,
    but menuopen is done the same way that topsopen is done in PlayerRanks.

    Edit, the only time it's actually used is in a section that has since been removed. :p
     
    Last edited by a moderator: Sep 21, 2017
  12. My bad. Need to address this in both plugs.
    Thanks Vlad.
     
  13. Does the mod allow you to add/remove players from groups quickly?

    I've also been dying to find a mod that will allow me to delete all players from a group with a command.
     
  14. /perms group name lets you set all permissions for a group very quickly
    and /perms player name carries an option to let you add/remove that one player from any available groups.

    Right now it doesn't have any option to mass-remove users from a group, but it's certainly something I could add.
     
  15. Awesome thanks. I have two groups I add and remove people from each wipe. Right now I have to do it one by one which is time consuming.
     
  16. I'll do it as a separate page (per group) that lists all the online+sleeping players with add/remove for each.
    Thanks. :)
     
  17. Failed to call hook 'permsList' on plugin 'PermissionsManager v0.0.4' Someone know why?
     
  18. Wulf

    Wulf Community Admin

    We'd need to see the full error, not line 1/20.
     
  19. Somthing like this

    16:20 [Error] Failed to call hook 'permsList' on plugin 'PermissionsManager v0.0.4' (NullReferenceException: Object reference not set to an instance of an object)
    16:20 [Stacktrace] at Oxide.Core.Plugins.CSPlugin+HookMethod.HasMatchingSignature (System.Object[] args, Boolean exact) [0x00000] in <filename unknown>:0