概览
AFKLobby 是一款轻量且可靠的 Bukkit/Paper 插件,旨在自动管理服务器中的闲置玩家。当玩家五分钟内没有移动时,他们会被安全地传送至专用的 AFK 区域,从而保持主世界的整洁,并防止不需要的挂机刷资源或杂物堆积。该插件无需复杂设置,在定义了 AFK 大厅位置后即可立即生效。
工作原理
当玩家变为不活跃状态时,AFKLobby 会将其确切位置——包括世界、坐标、偏航角和俯仰角——存储在一个干净的 JSON 文件中。在五分钟的闲置后,玩家将被移动到管理员通过 /setafklobby 命令设置的 AFK 大厅。这确保了空闲玩家不会干扰活跃的游戏区域、农场或活动,同时不会影响服务器的整体体验。
玩家控制
玩家可以使用 /afklobby true 或 /afklobby false 单独启用或禁用 AFK 传送功能。
如果禁用,插件将完全忽略这些玩家,允许建筑师、工作人员或需要保持静止的玩家避免被传送。这使得系统灵活且对玩家友好。
从 AFK 返回
一旦玩家再次移动,AFKLobby 会立即检测到移动并将他们传送回之前保存的位置。
这也适用于登出后:
如果玩家在 AFK 大厅内断开连接,插件会在他们重新登录时自动将其返回原始位置,确保无缝且直观的体验。
数据存储
所有插件数据都存储在一个单独的 JSON 文件中,包括:
• 每个玩家的 AFK 开关状态
• 最后已知位置
• AFK 大厅位置
这使得插件极易管理,无需传统的配置文件。
兼容性
AFKLobby 完全兼容以下环境:
• Bukkit
• Paper
• Minecraft 1.21.9 版本
它经过性能优化,适合小型和大型服务器使用。
为什么使用 AFKLobby?
AFKLobby 提供了一个干净、自动化且对玩家友好的 AFK 系统,具有以下特点:
• 零设置复杂度
• 完整的玩家控制权
• 自动返回传送
• 安全的 AFK 处理
• 轻量级性能表现
它是那些希望拥有专业 AFK 管理系统而不愿承受不必要开销的服务器的完美解决方案。
Overview
AFKLobby is a lightweight and reliable Bukkit/Paper plugin designed to automatically manage inactive players on your server. After five minutes of no movement, players are safely teleported to a dedicated AFK area, keeping your main world clean and preventing unwanted AFK farming or clutter. The plugin requires no complex setup and works instantly after defining an AFK lobby location.
How It Works
When a player becomes inactive, AFKLobby stores their exact position — including world, coordinates, yaw, and pitch — in a clean JSON file. After five minutes of inactivity, the player is moved to the AFK lobby set by an administrator using /setafklobby . This ensures that idle players are kept out of active gameplay areas, farms, or events without disrupting the server experience.
Player Control
Players can individually enable or disable AFK teleportation using /afklobby true or /afklobby false .
If disabled, the plugin completely ignores them, allowing builders, staff members, or players who need to remain still to avoid being teleported. This makes the system flexible and player‑friendly.
Returning From AFK
As soon as a player moves again, AFKLobby instantly detects the movement and teleports them back to their previously saved location.
This also works after logging out:
If a player disconnects while inside the AFK lobby, the plugin automatically returns them to their original location when they log back in, ensuring a seamless and intuitive experience.
Data Storage
All plugin data is stored in a single JSON file, including:
• AFK toggle state for each player
• Last known locations
• AFK lobby position
This makes the plugin extremely easy to manage without requiring a traditional configuration file.
Compatibility
AFKLobby is fully compatible with:
• Bukkit
• Paper
• Minecraft version 1.21.9
It is optimized for performance and suitable for both small and large servers.
Why Use AFKLobby?
AFKLobby provides a clean, automated, and player‑friendly AFK system with:
• Zero setup complexity
• Full player control
• Automatic return teleportation
• Safe AFK handling
• Lightweight performance
It’s the perfect solution for servers that want a professional AFK management system without unnecessary overhead.
评论 0
登录后参与评分
还没有评论,来抢沙发吧