1. Hey AnExiledGod,
    i have a feature request for you.


    It would be nice to have a command which would print all players who weren't online in a certain time, e.g offline for 7 days.
    That would be a neat info for me and maybe also for other server owners?
    Is that possible to implement?


    Greetings,
    Schwarzbrotkatze
     
  2. started getting this from this most recent update
    Code:
    Oxide] 9:10 PM [Error] Failed to call hook 'OnPlayerInit' on plugin 'PlayTime v2.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 9:10 PM [Debug]   at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.PlayTime+PlayTimeInfo].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayTime.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
  3. Wulf, can you update this usefull plugin?
     
  4. I keep having this error:
    Code:
    [Oxide] 5:15 PM [Error] Failed to call hook 'OnPlayerInit' on plugin 'PlayTime v2.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 5:15 PM [Debug]   at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.PlayTime+PlayTimeInfo].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayTime.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    Any Help? Thanks!
     
    Last edited by a moderator: Sep 3, 2015
  5. Wulf

    Wulf Community Admin

    Try the below attachment please. I also added the ResourceId for Updater.
     
  6. It's working fine @Wulf !

    Thanks! :D
     
  7. canUserLastSeen does not exist.
     
  8. /mostonline doesnt work either.

    I get the following:

    Code:
    [Oxide] 11:12 PM [Error] Failed to call hook 'MostOnlineCommand' on plugin 'PlayTime v2.0.1' (ArgumentException: An element with the same key already exists in the dictionary.)
    [Oxide] 11:12 PM [Debug]  at System.Collections.Generic.Dictionary`2[System.String,System.Int64].Add (System.String key, Int64 value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayTime.MostOnlineCommand (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayTime.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename
    
     
  9. /mostonline doesnt work((
    [Error] Failed to call hook 'MostOnlineCommand' on plugin 'PlayTime v2.0.1' (ArgumentException: An element with the same key already exists in the dictionary.)

    Everything else is ok, thanks a lot!
     
  10. Code:
    Notifier] SkottSnabb joined from Sweden
    [Oxide] 15:56 [Error] Failed to call hook 'OnPlayerInit' on plugin 'PlayTime v2.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 15:56 [Debug]   at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.PlayTime+PlayTimeInfo].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayTime.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayTime.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Oct 18, 2016
  11. Code:
    [Oxide] 12:41 [Warning] Missing plugin name prefix 'playtime.' for permission 'canuseplaytime' (by plugin 'PlayTime')
    [Oxide] 12:41 [Warning] Missing plugin name prefix 'playtime.' for permission 'canuselastseen' (by plugin 'PlayTime')
    [Oxide] 12:41 [Warning] Missing plugin name prefix 'playtime.' for permission 'canusemostonline' (by plugin 'PlayTime')
     
  12. i have a suggestion , what about player permissions over time ?

    like after 20 hours on the server it auto grants you betterchat.group.regular or something.
     
  13. Hi. Is it with this plugin? Can someone help me?
    When logging in to a new player.
    Code:
    (13:52:57) | [Oxide] 13:52 [Error] Web request callback raised an exception (JsonReaderException: Unexpected character encountered while parsing value: E. Path '', line 0, position 0.)
    (13:52:57) | [Oxide] 13:52 [Debug] at Newtonsoft.Json.JsonTextReader.ParseValue () [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.JsonTextReader.ReadInternal () [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Linq.JObject.Load (Newtonsoft.Json.JsonReader reader) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Linq.JObject.Parse (System.String json) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Notifier.WebRequestFilter (Int32 code, System.String response, .BasePlayer player, Boolean joined) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Notifier+<InitializePlayer>c__AnonStorey0.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Oct 18, 2016
  14. Wulf

    Wulf Community Admin

    This plugin has been marked as unmaintained and replaced by a universal version: Playtime Tracker.