NoPlayerStop
NoPlayerStop 是一款轻量级实用工具,使你的服务器能够按需运行。当没有玩家在线时,它会自动关闭服务器,从而将你的设置转变为类似**无服务器(serverless-like)**的环境,在闲置期间节省 CPU 和 RAM 资源。
支持的平台
- Fabric
- NeoForge
- Paper
- 任何基于 Paper 的服务器,例如 Purpur。
使用 MC-Gate 构建无服务器基础设施
本模组旨在作为 mc-gate 的完美搭档。

当服务器为空时,NoPlayerStop 负责自动关闭服务器;而 mc-gate 则作为一个高性能的异步代理保持在线状态。当有玩家尝试加入或 ping 服务器时,mc-gate 会检测到流量并执行命令以唤醒服务器。
两者共同构建了一个完全自动化的**按需(On-Demand)**生态系统:你的服务器仅在有人实际游玩时才消耗硬件资源。

主要特性
- 智能空闲检测:监控玩家活动,仅在服务器真正空无一人的时候触发关机流程。
- 可自定义的宽限期:可配置的延迟时间,确保服务器不会因玩家快速重连而过早关闭。
- 实时倒计时:在最终关闭前,在控制台中提供实时警告。
- Webhook 集成:服务器离线时,立即向 Discord 或自定义网络服务发送自动化通知。
- 原生性能:尽可能保持轻量,对 tick 速率或游戏性能零影响。
配置
配置文件会在首次运行时自动生成。你可以调整以下参数:
enabled:开启或关闭整个系统。shutdown-delay:最后一名玩家离开后等待多少秒再关闭。warning-seconds:何时开始广播关机警告。min-players:启动倒计时的玩家数量阈值(通常为 0)。enable-webhooks:启用或禁用外部通知。webhook-url:你的 Discord 或自定义 API 端点地址。webhook-body:要发送的 JSON 负载,支持如%time%和%last_player_active%等变量。
许可证
本项目遵循 MIT License 许可协议。
NoPlayerStop
NoPlayerStop is a lightweight utility that enables your server to operate on demand. By automatically shutting down when no players are active, it transforms your setup into a serverless-like environment, saving CPU and RAM resources during downtime.
Supported Platforms
- Fabric
- NeoForge
- Paper
- Any Paper-Based like Purpur.
Serverless Infrastructure with MC-Gate
This mod is designed to work as the perfect companion for mc-gate.

While NoPlayerStop handles the automated shutdown when your server is empty, mc-gate acts as a high-performance async proxy that stays online. When a player attempts to join or pings the server, mc-gate detects the traffic and executes a command to wake the server back up.
Together, they create a fully automated On-Demand ecosystem: your server only consumes hardware resources when someone is actually playing.

Key Features
- Smart Idle Detection: Monitors player activity and triggers a shutdown sequence only when the server is truly empty.
- Customizable Grace Period: Configurable delays to ensure the server doesn't shut down during quick relogs.
- Live Countdown: Provides real-time warnings in the console before the final shutdown occurs.
- Webhook Integration: Send automated notifications to Discord or custom web services the moment the server goes offline.
- Native Performance: Built to be as lightweight as possible with zero impact on tick rates or game performance.
Configuration
The configuration file is generated automatically on the first run. You can adjust the following parameters:
enabled: Toggle the entire system on or off.shutdown-delay: How many seconds to wait after the last player leaves.warning-seconds: When to start broadcasting shutdown warnings.min-players: The player count threshold to start the timer (usually 0).enable-webhooks: Enable or disable external notifications.webhook-url: Your Discord or custom API endpoint.webhook-body: The JSON payload to send, supporting variables like%time%and%last_player_active%.
License
This project is licensed under the MIT License.
下载 NoPlayerStop
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoPlayerStop
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoPlayerStop
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoPlayerStop
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoPlayerStop
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoPlayerStop
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新功能:
- 集成命令系统:新增
/nps <>命令,无需重启即可实时管理模组。reload:立即重新加载配置文件。toggle:临时停止自动关机逻辑。status:检查服务器的当前状态、玩家数量以及距离关机的剩余时间。reset:重置关机计时器。testwebhook:向已配置的 Webhook 发送测试通知,以验证连接是否正常。
- 更新配置文件,允许禁用/启用
testwebhook命令,以防止管理员滥用或产生垃圾信息。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧