XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEServerManager

【Java】我的世界XFE服务器管理器

公开
关注 0 Fork 0 Star 0
README.md

XFE Server Manager

XFE Server Manager is a server-side Minecraft Forge administration mod with a browser-based control plane, semantic command policies, live health metrics, audited player operations, and an extensible governance layer. It is currently a development implementation, not a production release.

The project targets four explicit Forge baselines. It does not claim that a single jar works across Minecraft versions.

Minecraft Forge Java Artifact
1.20.1 47.4.23 17 xfeservermanager-forge-1.20.1-<version>.jar
1.20.6 50.2.10 21 xfeservermanager-forge-1.20.6-<version>.jar
1.21.1 52.1.16 21 xfeservermanager-forge-1.21.1-<version>.jar
1.21.11 61.2.1 21 xfeservermanager-forge-1.21.11-<version>.jar

Repository layout

  • common/api — neutral public records and extension SPI.
  • common/core — policy, authorization, operations, and audit domain logic.
  • common/infra — embedded HTTP, authentication, persistence, and telemetry.
  • web-ui — React/TypeScript administration console.
  • platform — one isolated Forge build root per supported Minecraft version.
  • docs — security, API, deployment, and compatibility documentation.

Build

The repository includes Gradle wrappers; a global Gradle installation is not required. Java 17 builds the common modules and the 1.20.1 adapter. Java 21 is required for the newer adapters.

./gradlew check
cd web-ui && npm ci && npm test && npm run build
./scripts/build-all.sh

On Windows, use gradlew.bat and scripts/build-all.ps1.

The web server binds to 127.0.0.1:8765 by default. Put it behind a trusted HTTPS reverse proxy before exposing it outside the host.

See README.zh-CN.md for Chinese documentation.

First start

  1. Install exactly one artifact matching the server's Minecraft and Forge versions. The mod deliberately registers no client-required content or network channel; the vanilla-client handshake still requires acceptance testing for every target version before release.
  2. Start the dedicated server and keep the management listener on loopback.
  3. From the physical server console, run /xfesm web bootstrap.
  4. Use the ten-minute, single-use code to create the first owner, then enroll TOTP before enabling privileged Web features.

Configuration and databases are written under the server's XFE Server Manager data directory. Back them up only after a WAL checkpoint or a clean shutdown.

Documentation

Development status

The repository contains the platform-neutral policy, governance, player, rollback, authentication, SQLite, HTTP/SSE and Web-console implementation, together with isolated Forge adapters for the four baselines. The v2 governance and rollback work is currently a neutral domain core and partial persistence only: its Forge event capture, claim enforcement, world restore and rollback gateway are disabled. See the implementation status.

A build is not a production release until each generated JAR passes the dedicated-server start, vanilla-client handshake, clean-stop and database-recovery acceptance checks listed in the compatibility documentation.

Loopback binding, explicit policy publication, owner isolation, least-privilege command reparse and audited mutations are implemented safety defaults. They do not replace the outstanding production acceptance tests.

License

MIT © XFEstudio.

LICENSE MIT

MIT License

Copyright (c) 2026 XFEstudio

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.