PlaytimeTracker

Moved

Total Downloads: 4,803 - First Release: Sep 9, 2016 - Last Update: Nov 10, 2017

5/5, 10 likes
  1. Also, a request to add onto this. Can you make this plugin check a players time and depending on what time you set in config, it will grant a certain permission. For example Player has played for 12 hours oxide.grant user ... kits.. etc etc and also announces it to them in the chat to let them know.


    If you could do that, would be cool :)
     
  2. Hello, I guess I have a noob question as I didn't see anyone else ask it in this thread.....

    I understand how to add different permissions and change the multipliers... I am not seeing how I am able to add players into those permissions? Can someone explain that please.
     
  3. Code:
    (22:39:58) | [Oxide] 21:40 [Error] Failed to call hook 'OnUserConnected' on plugin 'PlaytimeTracker v0.1.5' (NullReferenceException: Object reference not set to an instance of an object)
    (22:39:58) | [Oxide] 21:40 [Stacktrace]   at Oxide.Game.Rust.Libraries.Player.Position (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Position () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.CheckPosition (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.ResetTimer (IPlayer player, Boolean isNew) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.InitPlayerData (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.OnUserConnected (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  4. Wulf

    Wulf Community Admin

    Update to Oxide 2.0.3342 or higher; should be fixed.
     
  5. suggestion: allow the application of a rank for a certain amount of time for referring someone, or maybe simpler: just a custom command which could do the same thing using another plugin like timed permissions
     
  6. Can you add the ability to add x points every x hour? Example: Every hour you get 1 point but on your 50th hour you get 20 points then you return back to 1 point until reaching the next 50 hours. This would reward players little more points for more playtime.
     
  7. can we fix the---> TrackAFKTime": true // Enables AFK time tracking. This time will not be added to the users playtime!

    it's still allowing players to go afk and they are getting there hour rewards.... thank you
     
  8. seeing this tonight
    Code:
    Failed to call hook 'OnUserConnected' on plugin 'PlaytimeTracker v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
    (21:48:57) | at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.ResetTimer (IPlayer player, Boolean isNew) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.InitPlayerData (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.OnUserConnected (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  9. When people are connecting we get this:

    Code:
    Failed to call hook 'OnUserConnected' on plugin 'PlaytimeTracker v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Core.Libraries.Covalence.GenericPosition.op_Equality (Oxide.Core.Libraries.Covalence.GenericPosition a, Oxide.Core.Libraries.Covalence.GenericPosition b) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.CheckPosition (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.ResetTimer (IPlayer player, Boolean isNew) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.InitPlayerData (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.OnUserConnected (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 
    Same thing on disconnect.

    Code:
    Failed to call hook 'OnUserConnected' on plugin 'PlaytimeTracker v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Core.Libraries.Covalence.GenericPosition.op_Equality (Oxide.Core.Libraries.Covalence.GenericPosition a, Oxide.Core.Libraries.Covalence.GenericPosition b) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.CheckPosition (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.ResetTimer (IPlayer player, Boolean isNew) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.InitPlayerData (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.OnUserConnected (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  10. Yes same problem here
    upload_2017-9-21_22-10-54.png
     
  11. Getting the same issue. We'll probably just have to wait for a fix. To my knowledge, the plugin still works, but just spams the console. :)
     
  12. Wulf

    Wulf Community Admin

    GenericPositon errors are fixed in the latest Oxide snapshot and will be in a release build shortly.
     
  13. Code:
    [Oxide] 11:01 [Error] Failed to call hook 'OnUserDisconnected' on plugin 'PlaytimeTracker v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 11:01 [Stacktrace]   at Oxide.Core.Libraries.Covalence.GenericPosition.op_Equality (Oxide.Core.Libraries.Covalence.GenericPosition a, Oxide.Core.Libraries.Covalence.GenericPosition b) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.CheckPosition (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.OnUserDisconnected (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    10.1.1.1:63933/76561197960651173/Vipes ★ ツ has auth level 2
    [Oxide] 11:01 [Info] [Logger] Vipes ★ ツ (76561197960651173) connected from 10.1.1.1
    [Oxide] 11:01 [Info] [SteamChecks] This player is whitelisted, therefore they bypass SteamChecks.
    [Oxide] 11:01 [Error] Failed to call hook 'OnUserConnected' on plugin 'PlaytimeTracker v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 11:01 [Stacktrace]   at Oxide.Core.Libraries.Covalence.GenericPosition.op_Equality (Oxide.Core.Libraries.Covalence.GenericPosition a, Oxide.Core.Libraries.Covalence.GenericPosition b) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.CheckPosition (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.ResetTimer (IPlayer player, Boolean isNew) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.InitPlayerData (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.OnUserConnected (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  14. Wulf

    Wulf Community Admin

    Update Oxide.
     
  15. I just noticed this error in the console.
    Code:
    (00:37:31) | at Oxide.Core.Libraries.Covalence.GenericPosition.op_Equality (Oxide.Core.Libraries.Covalence.GenericPosition a, Oxide.Core.Libraries.Covalence.GenericPosition b) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.PlaytimeTracker.CheckPosition (IPlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.PlaytimeTracker.OnUserDisconnected (IPlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.PlaytimeTracker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Sep 22, 2017
  16. Wulf

    Wulf Community Admin

    Update Oxide.
     
  17. So I assume this update came after 2017-09-21 17:15:59?
     
  18. Wulf

    Wulf Community Admin

  19. help ?,

    (Oxide.Core.Libraries.Covalence.GenericPosition a, Oxide.Core.Libraries.Covalence.GenericPosition b) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.PlaytimeTracker.CheckPosition (IPlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.PlaytimeTracker.OnUserDisconnected (IPlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.PlaytimeTracker.Unload () [0x00000] in <filename unknown>:0