AnExiledGod submitted a new resource:
PlayTime - Logs players play time and allows you to view the players play time with a command.
Read more about this resource...
PlayTime [Replaced]
Discussion in 'Plugin Support' started by AnExiledGod, Jun 22, 2015.
-
AnExiledGod updated PlayTime with a new update entry:
Added Highscores
-
love this !
-
error
ошибкаAttached Files:
-
-
Code:
[Oxide] 5:12 AM [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'PlayTime' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 5:12 AM [Debug] at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.PlayTime+PlayerInfo].get_Item (System.String key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.PlayTime.OnPlayerDisconnected (.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
-
If i do this on myself:
Code:[Oxide] 10:39 AM [Error] Failed to call hook 'LastSeenCommand' on plugin 'PlayTime' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 10:39 AM [Debug] at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.PlayTime+PlayerInfo].get_Item (System.String key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.PlayTime.LastSeenCommand (.BasePlayer player, System.String command, System.String[] args) [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.Global
[DOUBLEPOST=1435053835][/DOUBLEPOST]ok after some time i dont get a error xD
but every player can access the commands.
Please implement a permission system.
If i player is online and we do the command /lastseen please implement a message "Player is actual online"...
Thank you!! Great addonLast edited by a moderator: Jun 23, 2015 -
Code:
[Oxide] 1:39 PM [Error] Failed to call hook 'PlayTimeCommand' on plugin 'PlayTim e' (IndexOutOfRangeException: Array index is out of range.) [Oxide] 1:39 PM [Debug] at Oxide.Plugins.PlayTime.PlayTimeCommand (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unk nown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (ob ject,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
-
Wow I just noticed I don't get notifications when people reply to my plugin posts
Yes, I know there are some errors, their harmless, just annoying. I'm going to look into fixing them. Also I will see about implementing the oxide permission system. -
AnExiledGod updated PlayTime with a new update entry:
New Features and some Bug Fixes!
-
Seems to be working, but on player log out.
Code:[Oxide] 8:16 AM [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'PlayTime' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 8:16 AM [Debug] at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.PlayTime+PlayerInfo].get_Item (System.String key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.PlayTime.OnPlayerDisconnected (.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
Last edited by a moderator: Jun 24, 2015 -
Fantastic, if it comes up again let me know. I wasn't able to reproduce locally but I'm limited in what I can test.
-
Works great for me ! Thanks you! 5 stars!
-
-
-
-
-
And the problem is in the data file. Player zashol and went out and turned negative during the game:
"LastLoginTime": 1435141405,
"LastLogoutTime": 1435141867,
"Played": -1435139248652733
[DOUBLEPOST=1435144002][/DOUBLEPOST]Sometimes errors occur when a player is disconnected from the server:
Code:[Oxide] 2:10 PM [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'PlayTime' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 2:10 PM [Debug] at System.Collections.Generic.Dictionary`2 [System.String, Oxide.Plugins.PlayTime + PlayerInfo] .get_Item (System.String key) [0x00000] in <filename unknown>: 0 at Oxide.Plugins.PlayTime.OnPlayerDisconnected (.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
-
-
is this the same plugin that ive seen on Intoxicated servers that announces this information? For example: ThatGermanGuy has logged back in after 3 days and 5hrs....etc
-
Nope, this plugin doesn't do that. It can if you want that feature.
This is the only plugin for playtime though so they probably have a custom plugin.