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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧