AFK [Unmaintained]

Discussion in 'Plugin Support' started by Wulf, Jan 10, 2015.

  1. Wulf

    Wulf Community Admin

    Wulf submitted a new resource:

    AFK Kick - Kicks players that are AFK (away from keyboard) for set amount of seconds

    Read more about this resource...
     
  2. Wulf

    Wulf Community Admin

    Wulf updated AFK Kick with a new update entry:

    Minor, optional update

     
  3. very useful plugin thanks Wulf!
     
  4. Wulf

    Wulf Community Admin

    Just fulfilling a request. ;)
     
  5. Wulf

    Wulf Community Admin

  6. Wulf

    Wulf Community Admin

    Wulf updated AFK Kick with a new update entry:

    Added option to exclude admin from AFK check

     
  7. This is the perfect addition to the Money-for-Time mod :) keeps players from abusing the system.

    I get this error:

    LuaScriptException: [string "afk.lua"]:49: attempt to call method 'Destroy' (a nil value)
     
  8. Wulf

    Wulf Community Admin

    Try the attached version below please.
     

    Attached Files:

    • afk.lua
      File size:
      3.1 KB
      Views:
      41
  9. well been on the server for about 5 mins now and no error yet.
     
  10. It is possible to make a plugin that AFK kick, only if the player does not craft?
     
  11. Wulf

    Wulf Community Admin

    I can probably add an option to my plugin.
     
  12. This would be perfect!
     
  13. Players seem to get kicked if they are not moving but are still looking around.
     
  14. Wulf

    Wulf Community Admin

    I'll take a look at it and see what I can do.
     
  15. Wulf

    Wulf Community Admin

    Wulf updated AFK Kick with a new update entry:

    Permission change and some cleanup

     
  16. error
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      15.4 KB
      Views:
      28
  17. Wulf

    Wulf Community Admin

    Oops, I'll get that fixed!
     
  18. Wulf

    Wulf Community Admin

  19. Hey Wulf. Sorry to bother you but I installed this on my server today and it does not seem to do anything to a player that is AFK. I also tried restarting the server. No error messages at all. Any ideas?

    [DOUBLEPOST=1435339370][/DOUBLEPOST]It worked at first but now it's not working again. Odd.
    [DOUBLEPOST=1435340635,1435332751][/DOUBLEPOST]Here is the error message:
    Code:
    Oxide] 1:48 PM [Error] Failed to run a 300.00 timer File: afk.lua Line: 27 Object reference not set to an instance of an object: at Network.Implementation.Raknet.Server.Kick (Network.Connection cn, System.String message) [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
     
  20. Wulf

    Wulf Community Admin

    Most likely the player was no longer connected at that time of kick.