Mmmm, I think I know why. Looking into a fix.

AFK
Kicks players that are AFK (away from keyboard) for too long
Total Downloads: 890 - First Release: May 20, 2016 - Last Update: Sep 5, 2016
- 5/5, 5 likes
-
Wulf Community Admin
-
Wulf Community Admin
-
It is merely because you are a solid dev that keeps up on the versioning in a timely manner....
I will have to use the older version because I hate to update oxide except on wipe cycles bc it sometimes breaks other mods.
Thanks for your timely responses as well.
Additionally I have another suggestion for your mod.... can you add a json key that will pause the kick of an AFK player if they are crafting?? Only kick after crafting completed?? There are players that start crafting and then go get a bite to eat... that's fair in my book. -
Wulf Community Admin
-
-
afk.excluded does not work for me. I set the permission and still get kicked.
Last edited by a moderator: Sep 6, 2016 -
Wulf Community Admin
-
Individual (two of us).
For me I can add to admin group because I am the only person in the group.... but for the other guy I have to add as individual because he is a moderator BUT not in the moderator group (for a reason, it is too liberal with permissions in rust general).
[DOUBLEPOST=1473133551][/DOUBLEPOST]gotta sleep will deal with it tomorrow... -
Wulf Community Admin
-
I'm on the newst version of oxide and just a few minuts ago this error shows up
Code:Oxide] 22:24 [Error] Failed to call hook 'OnUserDisconnected' on plugin 'AFK v1.1.5' (NullReferenceException: Object reference not set to an instance of an object)
-
Wulf Community Admin
-
Code:[Oxide] 22:24 [Debug] at Oxide.Plugins.AFK.OnUserDisconnected (IPlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.AFK.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
-
Setup the mod to AFK kick people after 30min regardless of crafting.
Setup the mod to AFK kick people after 30min but if crafting delay 15min.
The new config item would not be a true/false of delay while crafting but a number that will delay in addition to the 30 min IF they are crafting and provide warnings while the crafting delay is in progress.
Someone else in this thread might come up with a better solution but mainly since i have the ServerRewards mod and people get points for playing... then they AFK for hours gaining points. I have already suggested to the dev of ServerRewards to put in an AFK flag that will stop point from being earned if they are still for a certain length of time. -
Wulf Community Admin
-
I got this error a few minuts ago
Code:[Oxide] 20:12 [Debug] at Oxide.Game.Hurtworld.Libraries.Covalence.HurtworldPlayer.Position () [0x00000] in <filename unknown>:0 at Oxide.Plugins.AFK.AfkCheck (IPlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.AFK.OnUserConnected (IPlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.AFK.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
-
Just to let you know I started crashing the server 2-3 times a day recently and when I traced back and removed the most recent installed mods... turns out it looks like AFK was crashing the server. Of course I am not 100% sure but the three mods I removed (in order) were Player Manager, Inventory Viewer and AFK.
Of course I was not crash free until AFK was gone. -
Wulf Community Admin
-
@Wulf I don't know if you've this trouble but i do,
Code:[Oxide] 14:42 [Error] Failed to call hook 'OnUserDisconnected' on plugin 'AFK v1.1.5' (NullReferenceException: Object reference not set to an instance of an object)
Code:[Oxide] 14:42 [Debug] at Oxide.Plugins.AFK.OnUserDisconnected (IPlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.AFK.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
-
@Wulf someone just has being kicked from my server and I getted this error showed up
Code:[Oxide] 14:49 [Error] Failed to call hook 'OnUserDisconnected' on plugin 'AFK v1.1.5' (NullReferenceException: Object reference not set to an instance of an object)