FORGE Server Starter
Forge Server Starter 是一个轻量级的 Forge 和 NeoForge Minecraft 服务器启动器。它取代了传统的 .bat 和 .sh 启动脚本,简化了安装、配置、启动、控制台访问以及服务器维护流程。
在自定义脚本或启动命令受限的游戏服务器托管环境中,它尤其有用。
功能特性
- 支持 Forge 和 NeoForge — 兼容现代加载器以及旧版 Forge(最低至 Minecraft 1.7.10)。
- 引导式安装 — 通过控制台交互式安装 Forge 或 NeoForge。
- 自动安装 — 使用
forge-auto-install.txt 安装已配置的加载器。
- 加载器检测 — 自动检测已安装的 Minecraft、Forge 和 NeoForge 版本。
- 库文件检查 — 验证所需的服务器库文件是否可用。
- 跨平台启动 — 为 Windows、Linux 和 macOS 使用相应的参数。
- 控制台透传 — 显示完整的服务器输出并转发控制台命令。
- 快速重启 — 在控制台中输入
/restart 即可优雅地重启服务器。
- 可选的加载器更新 — 可检查并安装更新的 Forge 或 NeoForge 版本。
- 自定义 Java 路径 — 通过
server_starter.conf 使用特定的 Java 安装。
- 自定义时区 — 在不更改主机系统的情况下配置服务器时区。
- 网络检查控制 — 在受限网络中禁用启动时的连接检查。
- 日志记录与调试 — 将启动器事件写入日志文件并启用详细诊断。
- 更新通知 — 当有更新的 Forge Server Starter 版本可用时接收通知。
- Java 兼容性 — 根据 Minecraft 版本的不同,支持从 Java 8 到 Java 25。
Minecraft EULA
Forge Server Starter 不会在用户不知情或未同意的情况下接受 Minecraft 最终用户许可协议 (EULA)。
在首次启动服务器之前,会显示官方 Minecraft EULA:
阅读 EULA 后,用户必须明确输入:
true
只有这样,Forge Server Starter 才会将以下设置写入 eula.txt:
eula=true
如果没有此明确确认,EULA 状态将保持不变。
快速开始
- 下载最新的
minecraft_server.jar。
- 将其放置在 Minecraft 服务器目录中。
- 启动启动器:
java -Xms1G -Xmx2G -jar minecraft_server.jar nogui
- 按照控制台中显示的说明进行操作。
- 在提示时阅读并确认 Minecraft EULA。
- Forge Server Starter 将启动检测到的 Forge 或 NeoForge 服务器。
请根据服务器可用的内存量调整 -Xms 和 -Xmx。
自动安装
在 minecraft_server.jar 旁边创建 forge-auto-install.txt。
NeoForge 示例
minecraftVersion=1.21.1
loaderType=NeoForge
loaderVersion=latest
Forge 示例
minecraftVersion=1.20.1
loaderType=Forge
loaderVersion=latest
可用的加载器设置项:
minecraftVersion — 要安装的 Minecraft 版本。
loaderType — Forge 或 NeoForge。
loaderVersion — 特定版本号,latest(最新版),或在支持情况下的 recommended(推荐版)。
Forge Server Starter 会在启动服务器之前下载并安装所选的加载器。
配置
在首次启动时,Forge Server Starter 会创建:
server_starter.conf
配置包含以下设置:
- 时区
- Java 可执行文件
- 调试输出
- 文件日志记录
- 网络检查
- 自动加载器更新
- 更新请求
- EULA 确认行为
示例:
timezone=UTC
java_path=java
debug=false
log_to_file=true
network_check=true
auto_update_loader=false
unique_id_request=true
生成的配置文件包含对每个选项的额外说明。
控制台命令
在启动器控制台中输入的命令将直接转发给 Minecraft 服务器。
示例:
list
say Server restart in 5 minutes
stop
若要在不重启 Forge Server Starter 的情况下重启服务器,请输入:
/restart
当前服务器进程将被优雅地停止并重新启动。
自动加载器更新
默认的 Forge 或 NeoForge 自动更新功能是禁用的。
可以在 server_starter.conf 中启用它们:
auto_update_loader=true
启用后,Forge Server Starter 将在启动时检查是否有更新的兼容加载器版本,并在可用时进行安装。
在生产服务器更新之前,请务必创建备份。加载器更新可能需要更新模组或更改配置。
受限或离线网络
当托管提供商、防火墙或代理阻止连接测试时,可以禁用启动时的网络检查:
network_check=false
Forge Server Starter 随后将继续使用本地可用的文件。在线安装、更新检查和下载仍然需要互联网连接。
日志记录
启动器事件可写入:
logs/server-starter.log
文件日志默认启用。可通过以下方式启用额外的诊断输出:
debug=true
兼容性
- Windows
- Linux
- macOS
- Forge
- NeoForge
- 支持旧版 Forge,最低至 Minecraft 1.7.10
- 支持新版 NeoForge,包括四位版本号格式
- Java 8 至 Java 25
服务器所需的 Java 版本取决于所选的 Minecraft 和加载器版本。较旧的 Minecraft 版本可能需要 Java 8,而现代版本通常需要 Java 17 或 Java 21。
最新改进
- 明确的 Minecraft EULA(最终用户许可协议)确认
- 在接受前显示官方 EULA 信息
- 支持 Forge 和 NeoForge 加载器更新
- 通过
/restart 命令实现更快的服务器重启
- 可配置的启动网络检查
- 在现代 Java 版本上改进了控制台输入体验
- 支持新版 NeoForge 版本格式
- 改进了对旧版 Forge 的兼容性
- 更可靠的二进制安装程序下载
- 提供 GitHub 和 CurseForge 更新链接
下载与源代码
- GitHub Releases:
- 源代码:
- CurseForge:
反馈与错误报告
欢迎提供反馈、建议和错误报告:
Discord
加入社区 Discord 服务器:
致谢
- rex2630 — Java 兼容性、重启功能、加载器更新及安装程序改进
- DerErizzle — 支持旧版 Minecraft 1.7.10
Forge Server Starter 与 Mojang Studios 或 Microsoft 无关。
FORGE Server Starter
Forge Server Starter is a lightweight launcher for Forge and NeoForge Minecraft servers. It replaces traditional .bat and .sh startup scripts and simplifies installation, configuration, startup, console access, and server maintenance.
It is particularly useful for game server hosting environments where custom scripts or startup commands are limited.
Features
- Forge and NeoForge support — Works with modern loaders and legacy Forge versions down to Minecraft 1.7.10.
- Guided installation — Installs Forge or NeoForge interactively through the console.
- Automatic installation — Installs a configured loader using
forge-auto-install.txt.
- Loader detection — Detects installed Minecraft, Forge, and NeoForge versions.
- Library check — Verifies that the required server libraries are available.
- Cross-platform startup — Uses the appropriate arguments for Windows, Linux, and macOS.
- Console passthrough — Displays the complete server output and forwards console commands.
- Fast restart — Restart the server gracefully by entering
/restart in the console.
- Optional loader updates — Can check for and install newer Forge or NeoForge versions.
- Custom Java path — Use a specific Java installation through
server_starter.conf.
- Custom timezone — Configure the server timezone without changing the host system.
- Network check control — Disable the startup connection check for restricted networks.
- Logging and debugging — Write launcher events to a log file and enable detailed diagnostics.
- Update notifications — Receive notices when a newer Forge Server Starter release is available.
- Java compatibility — Supports Java 8 through Java 25, depending on the Minecraft version.
Minecraft EULA
Forge Server Starter does not accept the Minecraft EULA without the user's knowledge and consent.
Before the first server start, the official Minecraft EULA is displayed:
After reading the EULA, the user must explicitly enter:
true
Only then will Forge Server Starter write the following setting to eula.txt:
eula=true
Without this explicit confirmation, the EULA remains unchanged.
Quick Start
- Download the latest
minecraft_server.jar.
- Place it in the Minecraft server directory.
- Start the launcher:
java -Xms1G -Xmx2G -jar minecraft_server.jar nogui
- Follow the instructions displayed in the console.
- Read and confirm the Minecraft EULA when prompted.
- Forge Server Starter will launch the detected Forge or NeoForge server.
Adjust -Xms and -Xmx to match the amount of memory available to your server.
Automatic Installation
Create forge-auto-install.txt next to minecraft_server.jar.
NeoForge example
minecraftVersion=1.21.1
loaderType=NeoForge
loaderVersion=latest
Forge example
minecraftVersion=1.20.1
loaderType=Forge
loaderVersion=latest
Available loader settings:
minecraftVersion — Minecraft version to install.
loaderType — Forge or NeoForge.
loaderVersion — A specific version, latest, or recommended where supported.
Forge Server Starter downloads and installs the selected loader before starting the server.
Configuration
On first startup, Forge Server Starter creates:
server_starter.conf
The configuration includes settings for:
- Timezone
- Java executable
- Debug output
- File logging
- Network checks
- Automatic loader updates
- Update requests
- EULA confirmation behavior
Example:
timezone=UTC
java_path=java
debug=false
log_to_file=true
network_check=true
auto_update_loader=false
unique_id_request=true
The generated configuration contains additional explanations for each option.
Console Commands
Commands entered into the launcher console are forwarded directly to the Minecraft server.
Examples:
list
say Server restart in 5 minutes
stop
To restart the server without restarting Forge Server Starter, enter:
/restart
The current server process will be stopped gracefully and started again.
Automatic Loader Updates
Automatic Forge or NeoForge updates are disabled by default.
They can be enabled in server_starter.conf:
auto_update_loader=true
When enabled, Forge Server Starter checks for a newer compatible loader version during startup and installs it when available.
Always create a backup before updating a production server. Loader updates may require updated mods or configuration changes.
Restricted or Offline Networks
The startup network check can be disabled when a hosting provider, firewall, or proxy blocks connection tests:
network_check=false
Forge Server Starter will then continue with locally available files. Online installation, update checks, and downloads still require internet access.
Logging
Launcher events can be written to:
logs/server-starter.log
File logging is enabled by default. Additional diagnostic output can be enabled with:
debug=true
Compatibility
- Windows
- Linux
- macOS
- Forge
- NeoForge
- Legacy Forge versions down to Minecraft 1.7.10
- Modern NeoForge versions, including four-part version numbers
- Java 8 through Java 25
The Java version required by the server depends on the selected Minecraft and loader version. Older Minecraft versions may require Java 8, while modern versions commonly require Java 17 or Java 21.
Latest Improvements
- Explicit Minecraft EULA confirmation
- Official EULA information displayed before acceptance
- Forge and NeoForge loader update support
- Faster server restarts using
/restart
- Configurable startup network check
- Improved console input on modern Java versions
- Support for modern NeoForge version formats
- Improved legacy Forge compatibility
- Reliable binary installer downloads
- GitHub and CurseForge update links
Downloads and Source Code
- GitHub Releases:
- Source Code:
- CurseForge:
Feedback and Bug Reports
Feedback, suggestions, and bug reports are welcome:
Discord
Join the community Discord server:
Credits
- rex2630 — Java compatibility, restart functionality, loader updates, and installer improvements
- DerErizzle — Legacy Minecraft 1.7.10 support
Forge Server Starter is not affiliated with Mojang Studios or Microsoft.
评论 0
登录后参与评分
还没有评论,来抢沙发吧