本项目fork自项目https://github.com/Nan1t/NanoLimbo 此分支为活跃状态,供学习参考使用 公开服:x.moonmc.cn 正版服:play.moonmc.cn 交流:http://tt.moonmc.cn
以下内容为NanoLimbo Readme.md
This is lightweight minecraft limbo server, written on Java with Netty. The main goal of the project is maximum simplicity with a minimum number of sent and processed packets. This limbo is empty, there are no ability to set schematic building since this is not necessary. You can send useful information in chat or BossBar.
No plugins, no logs. The server is fully clear. It only able keep a lot of players while the main server is down.
The general features:
- High performance. The server not saves and not cached any useless (for limbo) data.
- Doesn't spawn threads per player. Uses fixed threads pool.
- Support for BungeeCord and Velocity info forwarding.
- Support for BungeeGuard handshake format.
- Multiple versions support.
- Fully configurable.
- Lightweight. App size around 2MB.
Symbol X
means all minor versions.
- 1.8.X
- 1.9.X
- 1.10.X
- 1.11.X
- 1.12.X
- 1.13.X
- 1.14.X
- 1.15.X
- 1.16.X
- 1.17.X
- 1.18.X
- 1.19
- 1.19.1
The server doesn't support snapshots.
help
- Show help messageconn
- Display amount of connectionsmem
- Display memory usage statsstop
- Stop the server
Note, that it also will be closed correctly if you just press Ctrl+C
.
The installation process is simple.
- Download the latest version of program here
- Put jar file in the folder you want.
- Create a start script as you did it for Bukkit or BungeeCord with command like this:
java -jar NanoLimbo-<version>.jar
- The server will create
settings.yml
file. It's a server configuration. - Configure it as you want and restart server.
The server supports player info forwarding from the proxy. There are several types of info forwarding:
LEGACY
- The BungeeCord IP forwarding.MODERN
- Velocity native info forwarding type.BUNGEE_GUARD
- BungeeGuard forwarding type.
If you use BungeeCord, or Velocity with LEGACY
forwarding, just set this type in the config.
If you use Velocity with MODERN
info forwarding, set this type and paste secret key from Velocity
config into secret
field.
If you installed BungeeGuard on your proxy, then use BUNGEE_GUARD
forwarding type.
Then add your tokens to tokens
list.
You can create pull request, if you found some bug, optimization ability, or you want to add some functional, which is suitable for limbo server and won't significantly load the server.
Required software:
- JDK 1.8+
- Gradle 7+
To build minimized .jar, go to project root and write in terminal:
gradlew shadowJar
If you have any question or suggestion, join to Discord server