CheckAFK

⭐ — (3 endorsements) 📥 186 downloads 📌 v1.2-SNAPSHOT-Fix 📅 6/18/2025
🟡 Updated this year

By mjiangmc · bukkit

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 12/3/2025 📅 Created: 6/18/2025

🔍 Analysis

  • 🏆 #1126 of 1317 bukkit mods in this game by downloads

📋 About This Mod

# EN(Using translation software): After detecting the player's AFK, execute commands such as kicking out to effectively avoid wasting server resources. # ZH: 检测到玩家挂机后执行命令,例如踢出,有效避免浪费服务器资源。 ## Config.yml: ``` ######################################################### # 配置文件版本 configver: 2 ######################################################### # 挂机多少秒后执行命令 time: 300 # 挂机踢出执行的命令 commands: - 'kick %player% 挂机时间过长' # 插件信息前缀 prefix: "&6NewBlock&7&oAFK &e>>" # 调试设置 debug: true ############################ # 检测时间段设置(24小时制) # 格式: "HH:MM-HH:MM" # 示例: # - "00:00-06:00" # 凌晨0点到6点不检测 # - "12:00-13:00" # 中午12点到13点不检测 enable-time-range: ############################ # MySQL 数据库配置 ############################ mysql: enabled: false host: "localhost" port: 3306 database: "minecraft" username: "root" password: "" table_prefix: "checkafk_" # 连接池设置 connection_pool: maximum-pool-size: 10 minimum-idle: 5 connection-timeout: 30000 idle-timeout: 600000 max-lifetime: 1800000 ############################ # 哪些动作认为玩家不在挂机 ############################ # 移动(会被挂机池绕过,不推荐开启) move: true # 疾跑 sprint: true # 潜行 shift: true # 快捷栏切换物品 hotbar: true # 破坏方块 breakblock: true # 放置方块 placeblock: true # 使用物品 useitem: true # 攻击实体 attack: true # 查看成就(暂时不支持) achievement: true ``` ## Commands(命令): ``` /checkafk reload - 重新载入插件配置文件 /checkafk time <秒> - 设置自己挂机多长时间后执行命令 ``` ## permission(权限): ``` checkafk.use - 使用权限(包括命令) checkafk.time - 使用time命令权限 checkafk.bypass - 绕过挂机检测 checkafk.reload - 重新载入插件 ``` ## lang.yml(语言): ``` reload-success: "&a配置已重载!" no-permission: "&c你没有权限执行此命令!" usage: | &b重新载入插件: &f/checkafk reload &b设置挂机多长时间时触发命令: &f/checkafk time <秒> activity-triggered: "&b活动: {action} - 玩家: {player}" checking-player: "&b检查: {player} - 上次活跃 {seconds} 秒前 (超时: {timeout} 秒)" executing-command: "&a执行命令: {command}" time-set: "&a挂机检测时间已设置为 {minutes} 秒" time-reset: "&aAFK检查时间已重置为默认值" time-usage: "&c用法: /checkafk time <秒>" invalid-time: "&c时间必须大于0" invalid-number: "&c请输入有效的数字" player-only: "&c只有玩家可以使用此命令" ```

# EN(Using translation software): After detecting the player's AFK, execute commands such as kicking out to effectively avoid wasting server resources. # ZH: 检测到玩家挂机后执行命令,例如踢出,有效避免浪费服务器资源。

## Config.yml:

``` ######################################################### # 配置文件版本 configver: 2 ######################################################### # 挂机多少秒后执行命令 time: 300 # 挂机踢出执行的命令 commands: - 'kick %player% 挂机时间过长' # 插件信息前缀 prefix: "&6NewBlock&7&oAFK &e>>" # 调试设置 debug: true

############################ # 检测时间段设置(24小时制) # 格式: "HH:MM-HH:MM" # 示例: # - "00:00-06:00" # 凌晨0点到6点不检测 # - "12:00-13:00" # 中午12点到13点不检测 enable-time-range: [] ############################ # MySQL 数据库配置 ############################ mysql: enabled: false host: "localhost" port: 3306 database: "minecraft" username: "root" password: "" table_prefix: "checkafk_" # 连接池设置 connection_pool: maximum-pool-size: 10 minimum-idle: 5 connection-timeout: 30000 idle-timeout: 600000 max-lifetime: 1800000

############################ # 哪些动作认为玩家不在挂机 ############################ # 移动(会被挂机池绕过,不推荐开启) move: true # 疾跑 sprint: true # 潜行 shift: true # 快捷栏切换物品 hotbar: true # 破坏方块 breakblock: true # 放置方块 placeblock: true # 使用物品 useitem: true # 攻击实体 attack: true # 查看成就(暂时不支持) achievement: true ```

## Commands(命令): ``` /checkafk reload - 重新载入插件配置文件 /checkafk time <秒> - 设置自己挂机多长时间后执行命令 ``` ## permission(权限): ``` checkafk.use - 使用权限(包括命令) checkafk.time - 使用time命令权限 checkafk.bypass - 绕过挂机检测 checkafk.reload - 重新载入插件 ``` ## lang.yml(语言):

``` reload-success: "&a配置已重载!" no-permission: "&c你没有权限执行此命令!" usage: | &b重新载入插件: &f/checkafk reload &b设置挂机多长时间时触发命令: &f/checkafk time <秒> activity-triggered: "&b活动: {action} - 玩家: {player}" checking-player: "&b检查: {player} - 上次活跃 {seconds} 秒前 (超时: {timeout} 秒)" executing-command: "&a执行命令: {command}" time-set: "&a挂机检测时间已设置为 {minutes} 秒" time-reset: "&aAFK检查时间已重置为默认值" time-usage: "&c用法: /checkafk time <秒>" invalid-time: "&c时间必须大于0" invalid-number: "&c请输入有效的数字" player-only: "&c只有玩家可以使用此命令"

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Plugins
Author
mjiangmc
Version
1.2-SNAPSHOT-Fix
Downloads
186
Endorsements
3
Category
bukkit
Created
6/18/2025
Updated
12/3/2025
Game Versions
1.12, 1.12.1, 1.12.2, 1.13, 1.13.1
Tags
management, optimization, utility

🔧 How to Install Minecraft Plugins Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Plugins →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Plugins commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Plugins versions does CheckAFK support?

The author lists 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2. Other versions may work but are untested by the author.

What is the latest version of CheckAFK?

Version 1.2-SNAPSHOT-Fix, published 2025-12-03 with 186 downloads recorded at the source.

Keep browsing — more Minecraft Plugins mods await

📋 All Minecraft Plugins Mods 🏆 Top 25 📂 More bukkit 👤 More by mjiangmc 🔎 Similar Mods 🌐 Best bukkit (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods