TimedPermissions

Moved

Total Downloads: 2,967 - First Release: May 20, 2016 - Last Update: Apr 7, 2017

5/5, 22 likes
  1. was connected less than 12 hrs ago. have not done anything to the server since than
     
  2. Can you tell me what exactly the response is, when you try to use their steamid?
     
  3. omfg im retarded so sorry to waste your time i was keeping each part of info inside the <> and not remove <>
     
  4. No problem, you figured it out ;)
     
  5. laser can you help me with another part that i'm trying to work on with donators. your mod works perfectly with direct send commands but i'm trying to run an auto command with gpay that auto pulls steam id or username. i know this isn't part of your mod directly but the only line that doesn't work.
    command line is "command" : "addgroup <steamid> tier1 30d. tier 1 can be any group but all other mods pull from the <steamid and\or username>
     
  6. Do you mean a player don't have to do /claimdonation? Maybe also post this question at the Gpay topic.
    If I may suggest: try looking for SDonate. SDonate Donation System it is a 1 time payment but they get the donation directly without doing any extra actions (also support more currencies).
    I used GPay but I had to pay a small fee (understandable) for every donation + a fee for paypal. (%25 goes to other people)
    Sdonate is a 1 time payment.

    If you need any info about SDonate PM me, happy to help you.
     
  7. nice plugin
     
  8. Hi, i have a question, because i don't know what to do)
    I use plugin TankCommander, and sell the tank in the shop. But i dont know how to take off the permission in the player who buy it, because i want sell it for few hours. Permission are revoking, but if the player not leave her tank, he can use it more that buyed time.
    So i need to kick him from the server or something like this, to take off the permission. Can you help me with this problem? How to solve this?
    Is it real to add the command to this plugin like this?:
    kickplayer steamid 120m
    that we can use it in the shop
     
    Last edited by a moderator: May 13, 2018
  9. You might need to edit the Tank Commander code (or ask the dev to do it) so that the player is ejected from the tank when their permissions expire. Again, haven't tested, but Timed Permissions should trigger a OnUserPermissionRevoked event when the permission expires. Then all you have to do is something like
    Code:
    void OnUserPermissionRevoked(string id, string perm)
    {
         ulong steamID;
         if (perm != "tankcommander.use") return;
         if (UInt64.TryParse(id, out steamID) {
              commanders[id].ExitTank();
         }
    }
    
    The above was written from memory and not in any IDE, so is probably wrong somewhere, but the general idea should be sound.[/CODE]
     
  10. why TimedPermission adds/permiss, with a 3 hour difference. For example, using the console to give the player a group for 10 minutes, for example at 20:00, respectively, in 20:10 he will have to retire from the group, but recorded in TimedPermossion 17:10. It may be that the time zone should be set or what the difference is
    Скриншот 01-06-2018 211417.png
     
  11. IIRC, the timestamp in your console/rcon is your local time. The timestamps for TimedPermissions are for the GMT.
     
  12. Indeed it uses UTC time, as some servers had issues with using their local time. I'll see if I can add an option to configure the local time zone.
     
  13. After the wipe yesterday people don't automatically be placed in the correct group. Is there a way to force check and add them to the groups?
    Or did I do something wrong?

    When I use pinfo it say they are in the group for a specific time. But they are not in the group to get Kits and Betterchat.

    When I add them manually they are in the group.
     
    Last edited by a moderator: Jun 9, 2018
  14. What you're saying is that after running the command, they do get the Timed Permissions entry but the group is not applied?
     
  15. No, the plugin itself works, but for me not correctly after a forced wipe.
    I hope I can explain it better.

    For example:
    - A Player bought a VIP package before the wipe for 30 days. He is now in the VIP group.
    - After the wipe he was not in the VIP Group anymore. But in the data (and when you use pinfo) say he is still VIP for 30 days.
    - Checking the oxide.users.data say this player is in the default group.
    - When I use the addperm 1D command he is in the VIP group again for 31 days. (So the plugin is working)

    So I think the plugin doesn't check if the permissions are set.
    Like:
    - Loading Timed Permission
    - Check permissions from config.
    - Player X doesn't have the permission.
    - Adding Player X to this permission
     
  16. Looks like you accidentally wiped the oxide groups file. Timed Permissions doesn't regrant permissions and groups every time, because that could take a while on large servers.
     
  17. owwwww yes that must be the issue because it was full of permission which where old. I cleaned it.
    Thanks, next wipe it won't do this so it would be ok. For now some people manually adding to this group and it is fixed (workaround)

    Thanks for your quick response and help man!
     
  18. Is it possible to make a permission for players to use /pinfo?
    Currently I have 1 permission and then they can add themself to other permissions.

    Or is it just edit the following line?
    [Command("pinfo"), Permission("timedpermissions.use")]

    to
    [Command("pinfo"), Permission("timedpermissions.pinfo")]
     
  19. If you're only trying to let a person see their own permissions you might try this. On my server I use a slightly modified version of the plug-in. It means I have to re-modify it every time it get's updated, but it's the only fix I've found.

    Here's a link to the post where I pasted my code. Basically, it's a tweaked version of the /pinfo command for only that player.