Keep your server lively with AFK Kick! This script helps manage player activity by auto-kicking those who stay idle for too long. It’s perfect for keeping your server active and engaged.
Features:
- Adjustable AFK Timeout: Choose how long a player can be idle before being kicked—default is 10 minutes.
- Test Mode: Switch on Test Mode to kick players after just 15 seconds of inactivity for quick testing.
- AFK Warnings: Option to notify players when they’re close to being kicked, with customizable warning messages and time thresholds.
- Prevent AFK Kick: Players can use the /afkbypass command to stay marked as active and avoid being kicked.
- Custom Kick Message: Tailor the message players see when they’re kicked for being AFK.
Configuration:
- Enable or Disable the AFK Kick Feature
- Set Timeout Durations for Regular and Test Modes
- Customize Warning Messages and Thresholds
- Define the AFK Prevention Command
Installation:
Drop the cr-afk folder into your resources folder.
Add the script to your server configuration (server.cfg).
Edit config.lua as needed for your server setup.
Note:
This script is shared for free with the community. Please don’t claim it or its code as your own. Acknowledge the work that went into creating it.
Bugs & Feedback:
If you find any bugs, issues or have any suggestions, consider letting me know. Your feedback is valuable and helps me improve my scripts. Feel free to comment or reach out directly with any issues.