✨ AntiAFKPlus
为你的 Minecraft 服务器提供智能且可配置的 AFK(挂机)管理!
—
什么是 AntiAFKPlus?
AntiAFKPlus 是一款轻量级但功能强大的插件,可在玩家处于非活跃状态达到可配置时长后自动将其踢出服务器。
在踢出前警告玩家、设置基于权限的超时时间、允许玩家手动标记挂机,并保持服务器的整洁与公平。
非常适合生存服、阵营服、小游戏服、大厅服或网络服使用。
—
主要功能
-
⏳ 可配置的 AFK 踢出时间(全局及按权限区分)
-
豁免权限,排除管理员或 VIP 玩家
-
⚡ 踢出前的多重警告系统(自定义间隔如 60s、30s、10s)
-
广播玩家进入或离开 AFK 状态的消息
-
✋ 通过 /afk 命令手动切换 AFK 状态
-
按世界控制:仅在选定的世界中启用 AFK 检测
-
完全自定义消息,支持 {player} 和 {seconds} 占位符
-
使用 /afkplus reload 即时重载配置
-
内置 bStats 支持
-
✅ 支持 Minecraft 版本 1.16 至 1.21+
—
安装方法
- 下载最新的 .jar 文件
- 将其放入你的 /plugins/ 文件夹中
- 重启服务器或使用 /reload 命令
- 根据需要编辑 /plugins/AntiAFKPlus/config.yml 配置文件
—
命令列表
/afkplus reload
无需重启即可重载配置
权限:antiafkplus.admin
/afk
手动切换 AFK 状态
权限:antiafkplus.afk
—
️ 权限节点
- antiafkplus.bypass – 使玩家免除所有 AFK 检测
- antiafkplus.admin – 允许使用 /afkplus reload 命令
- antiafkplus.afk – 允许使用 /afk 命令手动切换 AFK 状态
- antiafkplus.time.600 – 10 分钟 AFK 超时
- antiafkplus.time.900 – 15 分钟 AFK 超时
- antiafkplus.time.1800 – 30 分钟 AFK 超时
—
️** 配置示例**
默认设置:
default-afk-time: 300
afk-check-interval-seconds: 5
afk-warnings:
[*]60
[*]30
[*]10
messages: afk-enter: "&7{player} is now AFK."
afk-exit: "&a{player} is no longer AFK."
kick-warning: "&eYou will be kicked in {seconds} seconds for being AFK!"
kicked: "&cYou have been kicked for being AFK."
请照常使用 & 颜色代码。{player} 和 {seconds} 等占位符会自动替换。
—
开发者 API
AntiAFKPlus 为开发者提供了一个简单且公开的 API。
你可以检查玩家是否处于 AFK 状态,或强制设置玩家为 AFK/恢复正常。
使用示例:
AntiAFKPlus plugin = (AntiAFKPlus) Bukkit.getPluginManager().getPlugin("AntiAFKPlus"); AntiAFKPlusAPI api = plugin.getAPI();
if (api.isAFK(player)) { player.sendMessage("You are AFK!"); }
请参阅 AntiAFKPlusAPI.md 获取完整文档。
—
数据统计
本插件使用 bStats.org 收集匿名使用统计数据。
如果需要,你可以在 /plugins/bStats/config.yml 文件中禁用它。
—
为什么选择 AntiAFKPlus?
- 轻量级且经过优化
- 高度可配置,适用于任何类型的服务器
- 多版本支持(1.16–1.21+)
- 代码整洁且结构清晰
- 专业的通知与用户体验
- 专为高性能和简洁性而设计
—
高级版即将推出
- ⭐ MySQL 数据库支持
- ⭐ 不再踢出,而是传送至大厅或出生点
- ⭐ 防自动点击器及防挂机刷资源保护
- ⭐ DecentHolograms / GHolo 集成
- ⭐ 踢出/AFK 日志记录系统
- ⭐ 扩展 PlaceholderAPI 支持
尽快升级到高级版以支持开发!
—
支持与联系
GitHub:
Discord:
—
✨ 让 AntiAFKPlus 保持你的服务器整洁、公平且专业! ✨
✨ AntiAFKPlus
Smart and configurable AFK management for your Minecraft server!
—
What is AntiAFKPlus?
AntiAFKPlus is a lightweight yet powerful plugin that automatically kicks inactive players after a configurable period.
Warn players before kicking, set per-permission timeouts, let players go AFK manually, and keep your server clean and fair.
Perfect for Survival, Factions, Minigames, Hub, or Network servers.
—
Main Features
-
⏳ Configurable AFK kick time (global and per permission)
-
Bypass permission to exclude staff or VIPs
-
⚡ Multi-warning system before kick (custom intervals like 60s, 30s, 10s)
-
Broadcasts when players enter or leave AFK
-
✋ Manual AFK toggle with the /afk command
-
Per-world control: enable AFK checks only in selected worlds
-
Fully customizable messages with {player} and {seconds} placeholders
-
Reload config instantly using /afkplus reload
-
Built-in bStats support
-
✅ Supports Minecraft versions 1.16 to 1.21+
—
Installation
- Download the latest .jar file
- Place it into your /plugins/ folder
- Restart your server or use /reload
- Edit /plugins/AntiAFKPlus/config.yml as desired
—
Commands
/afkplus reload
Reloads configuration without restarting
Permission: antiafkplus.admin
/afk
Manually toggle AFK status
Permission: antiafkplus.afk
—
️ Permissions
- antiafkplus.bypass – Exempts player from all AFK checks
- antiafkplus.admin – Allows use of /afkplus reload
- antiafkplus.afk – Allows manual AFK toggle using /afk
- antiafkplus.time.600 – 10 minutes AFK timeout
- antiafkplus.time.900 – 15 minutes AFK timeout
- antiafkplus.time.1800 – 30 minutes AFK timeout
—
️** Configuration Example**
Default settings:
default-afk-time: 300
afk-check-interval-seconds: 5
afk-warnings:
[*]60
[*]30
[*]10
messages: afk-enter: "&7{player} is now AFK."
afk-exit: "&a{player} is no longer AFK."
kick-warning: "&eYou will be kicked in {seconds} seconds for being AFK!"
kicked: "&cYou have been kicked for being AFK."
Use & color codes as usual. Placeholders like {player} and {seconds} are replaced automatically.
—
Developer API
AntiAFKPlus provides a simple and public API for developers.
You can check if a player is AFK or force AFK/return.
Example usage:
AntiAFKPlus plugin = (AntiAFKPlus) Bukkit.getPluginManager().getPlugin("AntiAFKPlus"); AntiAFKPlusAPI api = plugin.getAPI();
if (api.isAFK(player)) { player.sendMessage("You are AFK!"); }
See AntiAFKPlusAPI.md for full documentation.
—
Metrics
This plugin uses bStats.org to collect anonymous usage statistics.
You can disable it in the /plugins/bStats/config.yml file if desired.
—
Why Choose AntiAFKPlus?
- Lightweight and optimized
- Highly configurable for any server
- Multi-version support (1.16–1.21+)
- Clean code and well-structured
- Professional notifications and UX
- Designed for performance and simplicity
—
Coming Soon in the Premium Version
- ⭐ MySQL support
- ⭐ Teleport to lobby or spawn instead of kicking
- ⭐ Anti-autoclicker and AFK-farming protection
- ⭐ DecentHolograms / GHolo integration
- ⭐ Kick/AFK logging system
- ⭐ Extended PlaceholderAPI support
Support development by upgrading to the Premium version soon!
—
Support & Contact
GitHub:
Discord:
—
✨ Keep your server clean, fair, and professional with AntiAFKPlus! ✨
评论 0
登录后参与评分
还没有评论,来抢沙发吧