✨ 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! ✨
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiAFKPlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
AntiAFKPlus v2.9.5
兼容性 兼容 Minecraft Java Edition 26.1 和 26.1.1
更新日志 修复了在现代服务器上导致控制台出现警告的聊天相关问题
AntiAFKPlus v2.9.5 - 更新说明
⚠️ 重要通知:这是 AntiAFKPlus 最后一个免费版本。
由于缺乏支持且维护工作量巨大,该项目将从 3.0 版本开始转为付费模式。
这意味着什么?当前版本(2.9.5)将继续正常运行,但新功能、优化和技术支持将仅在付费版本中提供。此版本将不再有任何更新、维护或技术支持。
更多信息:加入我们的 Discord 服务器,了解有关 v3.0 发布的详细信息。
我衷心感谢那些始终用积极的话语支持我们的人。欢迎希望继续享受新功能和持续支持的用户进入这一全新阶段。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
评论 0
登录后参与评分
还没有评论,来抢沙发吧