Skip to content

BounceGaming/Ultimate-AFK

 
 

Repository files navigation

Ultimate-AFK

Handles AFK Checking in SCP:SL for King's Playground Servers.

Features

  • Detects AFK Players via in-game movement, camera movement, and in-game interactions
  • Moves players to spectator after a determined AFK Time and grace period
  • (Optional) Try to replace the player with a random spectator using code from DCReplace
  • (Optional) Kick players from the server after repeated AFK detections!
  • Custom broadcasts to AFK Players to indicate to them if they are AFK.
  • Works with SCP-079 by checking camera angle, and experience interactions

Default config:

uafk_enable: true
# The time is the time in seconds of non-movement before the player is detected as AFK.
uafk_time: 30
# The grace period is the time in seconds that the player has after the AFK Time where a message is displayed via broadcast.
uafk_grace_period: 15
uafk_prefix: <color=white>[</color><color=green>uAFK</color><color=white>]</color>
uafk_grace_period_message: <color=red>You will be moved to spec in</color> <color=white>%timeleft% seconds</color><color=red> if you do not move!</color>
uafk_fspec_message: You were detected as AFK and automatically moved to spectator!
uafk_try_replace: true
uafk_replace_message: You have replaced a player who was AFK
# Fspec count before player is kicked. (Set to -1 to disable kicking)
uafk_kick_count: 2
# Maximum replace time, if the round time is past this value it will not replace the player (Set to -1 to disable)
uafk_max_replace_time: -1

Installation

EXILED must be installed for this to work.

Place the "UltimateAFK.dll" file in your Plugins folder.

About

Handles AFK Checking for SCP:SL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%