Timed Permissions

Allows you to grant permissions or groups for a specific time

Total Downloads: 1,515 - First Release: May 20, 2016 - Last Update: Apr 7, 2017

5/5, 18 likes
  1. Crushed

    Crushed Shack Builder

    Code (Text):
    (18:57:37) | Error while compiling TimedPermissions.cs(330,41): error CS1061: Type `ConsoleSystem.Command' does not contain a definition for `name' and no extension method `name' of type `ConsoleSystem.Command' could be found. Are you missing an assembly reference?
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You're using an ancient, non-universal version. Update. ;)
     
  3. s3r4

    s3r4 Scavenger

    Hello. Know a bug:
    1. Message in chat
    2. addgroup s3r4. ELITE 30m
    3. /eh
    4. Message in chat

    WHERE MY [ELITE] STATUS o_O?

    [​IMG]
    --- Double Post Merged, Feb 4, 2017 ---
    When write and send to chat "/" symbol
    wtf?
    --- Double Post Merged, Feb 4, 2017 ---
    but VIP status works fine ...
    --- Double Post Merged, Feb 4, 2017 ---
    ok. simple:
    group add ELITE [ELITE] [1]
    need
    group add elite [ELITE] [1]
     
  4. LISDA

    LISDA Wood Hoarder

    please fix.
    Code (Text):
    [02/10/2017 07:02:10] TimedPermissions has replaced the 'grantperm' command previously registered by TimedPermissions
    [02/10/2017 07:02:10] TimedPermissions has replaced the 'addgroup' command previously registered by TimedPermissions
    [02/10/2017 07:02:10] TimedPermissions has replaced the 'pinfo' command previously registered by TimedPermissions
     
  5. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    LISDA likes this.
  6. Cerber0s

    Cerber0s Wood Hoarder

    whether it is possible make the time added to the current _expireDate
    with unixtime easier to work
     
  7. Findles

    Findles Shack Builder

    Do you need this plugin in order to do timed permissions? I thought you could do this with oxide on its own but I have no idea. Still new to this.
     
  8. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Oxide does not have timed permissions, the permission system is Oxide though.
     
  9. Findles

    Findles Shack Builder

    thanks for the reply. i'll used timed perms then with it. cool!
     
  10. Windamyre

    Windamyre Wood Hoarder

    This is kind of a reply /update to a couple of posts earlier. You can see my post here, and LaserHydra's response here.
    This is in regards to the issue of double issuing permissions and the problems it creates. I think I've kludged together a temporary fix that seems to work on my server, but would welcome anyone with comments on it. LaserHydra's maintains so many plug-ins... I'd hate to see his ToDo tab!

    Nutshell: I search for the permission name and if it exists, I just change the expireDate. Two quick notes: I had to use .ToLower to prevent minor typos (like ".VIP" vs ".vip") and I wasn't sure how to access the DateTime to String function, so I just copied it.

    in the AddPermission function (around line 81) change
    Code (Text):

    internal void AddPermission(string permission, DateTime expireDate)
    {
         permissions.Add(new TimedPermission(permission, expireDate));
     
    To
    Code (Text):

    internal void AddPermission(string permission, DateTime expireDate)
    {
         int existingPemission =  permissions.FindIndex(o => o.permission.ToLower() == permission.ToLower());
         if (existingPemission >= 0)
         {
              permissions[existingPemission]._expireDate = $"{expireDate.Minute}/{expireDate.Hour}/{expireDate.Day}/{expireDate.Month}/{expireDate.Year}";
         }
         else
         {
              permissions.Add(new TimedPermission(permission, expireDate));
         }
     
     
    LaserHydra likes this.
  11. Cerber0s

    Cerber0s Wood Hoarder

    still it creates a new permission and they have become two
     
  12. Ventrex

    Ventrex Wood Hoarder

    I have an issue when I wiped my server (Hurtworld)
    I copy the data file from before the wipe to the server after the wipe but the groups are not shown and i need to give everyone their groups again.
    (I also copied oxide.groups.data)
     
  13. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Sounds like you didn't copy oxide.users.data over.
     
    LaserHydra likes this.
  14. Ventrex

    Ventrex Wood Hoarder

    Indeed wulf! I feel such a noob now Sorry
     
  15. LaserHydra

    LaserHydra Grenade Master Plugin Developer

    Is somebody willing to test a new release?
     
    Tri likes this.
  16. Ventrex

    Ventrex Wood Hoarder

    Always LaserHydra! Got a test server and planning an extra pvp server all for hurtworld.
    Got a rust server also so can test for Rust and Hurtworld for you.
     
  17. LaserHydra

    LaserHydra Grenade Master Plugin Developer

    Hit me up with a PM.
     
  18. StreetDog

    StreetDog Shack Builder

    @LaserHydra

    if I made a mistake... for example:
    I wished to do this "addgroup 76561198106134545 VIP1 7d"
    and I confuse the group and did this "addgroup 76561198106134545 VIP2 7d"

    How can I remove the Timed permission for the user 76561198106134545 from the group VIP1?

    or If I want to terminate/finish some timed permission before the time specified... how to do this?
     
  19. Ventrex

    Ventrex Wood Hoarder

    I have to try it myself but i thought to give the same permission again for 1 sec will remove it.
     
  20. LaserHydra

    LaserHydra Grenade Master Plugin Developer

    Yea but that is more of a dirty workaround and might bug things. I would not do that.

    Instead, takes a bit more effort but is better, just open the datafile and search for the steamid. There you will find the permissions and be able to just remove it and reload the plugin.