Universal Limited times use permissions

Discussion in 'Plugin Requests' started by sanchesster, Dec 7, 2016.

  1. Is it possible to create plugin that allows to user a limited number/quantity of some permission?
    Example:
    I gave the player permission to call a helicopter or Airstrike on 1 time.
     
  2. That would need to be incorporated into those plugins.
     
  3. Timed Permissions | Oxide


    You can add the user on a group that can call the heli for this time
    or you can give the permission to the user for a time.
     
  4. I believe what he wanted wasn't permissions for "Time" but for an amount of usages.
     
  5. Yes. Give permission in server shop to call helicopter on 1 or more times.
    For example: buy permission to call helicopter on enemy player but one time.
    It must looks like:
    /granttimesperm <player|steamid> <permission> <times to use>
    It can be additional feature in Timed permissions plug-in.
    Sorry my english...
     
    Last edited by a moderator: Dec 8, 2016
  6. Oww is your Plugin
    lol

    Well, you have work now Laser, Add a counter for the permissions as he requested

    :p

    Cmon You can !!!

    ----

    indeed @sanchesster
    I think you can use it with the Gui of ServerRewards, If you sell a command, it will executed one time. Right?
     
  7. There is no good way in detecting when a permission was "used" once.
    Best would propably be if it was incoorporated inside the plugins he requests it for.
     
  8. Why not?
    you can enter a user to a group with permission, trigger the command, and left the group automaticaly.
     
  9. I don't think you fully understand what I mean.

    If another plugin could not determine when a permission from plugin A was used, as each plugin "uses" it differently.
    Best you could do is some workaround and revoke a certain permission when a certain command was used.
     
  10. Yes, I know that you said, A plugin commonly can not detect when was used instead the dev put some counter and is not a common task inside the plugin...

    But... is bad this idea?
    set this:
    /grantpermuses <player|steamid> <permission> <USAGES> give a player a permission for a limited use that you allow
    and the player will have this:
    /use <COMMAND>

    Then in code you can do this:
    If Player have the permission for limited uses
    then grant the use of /USE COMMAND for the uses that is allowed

    I think can work :)
     
  11. The more difficulty is not have the idea but writhe the update or new plugins :p
     
  12. Not every plugin consists of a command which uses the permission.