TimedPermissions

Moved

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

5/5, 22 likes
  1. Code:
    (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

    You're using an ancient, non-universal version. Update. ;)
     
  3. 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]
    [DOUBLEPOST=1486245544][/DOUBLEPOST]When write and send to chat "/" symbol
    wtf?
    [DOUBLEPOST=1486245709][/DOUBLEPOST]but VIP status works fine ...
    [DOUBLEPOST=1486246349][/DOUBLEPOST]ok. simple:
    group add ELITE [ELITE] [1]
    need
    group add elite [ELITE] [1]
     
  4. please fix.
    Code:
    [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

    Wulf updated Timed Permissions with a new update entry:

    1.2.7

     
  6. whether it is possible make the time added to the current _expireDate
    with unixtime easier to work
     
  7. 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

    Oxide does not have timed permissions, the permission system is Oxide though.
     
  9. thanks for the reply. i'll used timed perms then with it. cool!
     
  10. 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:
    internal void AddPermission(string permission, DateTime expireDate)
    {
         permissions.Add(new TimedPermission(permission, expireDate));
    
    To
    Code:
    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));
         }
    
     
  11. still it creates a new permission and they have become two
     
  12. 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

    Sounds like you didn't copy oxide.users.data over.
     
  14. Indeed wulf! I feel such a noob now Sorry
     
  15. Is somebody willing to test a new release?
     
  16. 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. Hit me up with a PM.
     
  18. @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. I have to try it myself but i thought to give the same permission again for 1 sec will remove it.
     
  20. 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.