Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
00dbcba628 |
@@ -46,7 +46,13 @@ public class BallServerInfo {
|
||||
public BallServerInfo(@NotNull ConfigSection config, @NotNull BallServerType type) {
|
||||
Map<String, String> env = System.getenv();
|
||||
id = env.getOrDefault("BALL_SERVER_ID", config.getString("id"));
|
||||
if (id == null || id.isEmpty()) {
|
||||
throw new IllegalArgumentException("id 不能为空");
|
||||
}
|
||||
name = env.getOrDefault("BALL_SERVER_NAME", config.getString("name"));
|
||||
if (name == null || name.isEmpty()) {
|
||||
throw new IllegalArgumentException("name 不能为空");
|
||||
}
|
||||
this.type = type;
|
||||
host = "0.0.0.0";
|
||||
port = 0;
|
||||
|
@@ -5,7 +5,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "cn.hamster3.mc.plugin"
|
||||
version = "1.7.1"
|
||||
version = "1.7.2"
|
||||
description = "基于 Redis 的 Minecraft 服务端通用消息中间件"
|
||||
|
||||
subprojects {
|
||||
|
Reference in New Issue
Block a user