refactor(bukkit): 为配置文件读取代码添加默认值
This commit is contained in:
@@ -40,9 +40,9 @@ public class BallBukkitAPI extends BallAPI {
|
||||
host.isEmpty() ? "127.0.0.1" : host,
|
||||
pluginConfig.getInt("server-info.port", Bukkit.getPort())
|
||||
),
|
||||
pluginConfig.getString("ball-server.host"),
|
||||
pluginConfig.getInt("ball-server.port"),
|
||||
pluginConfig.getInt("ball-server.nio-thread")
|
||||
pluginConfig.getString("ball-server.host", "ball.hamster3.cn"),
|
||||
pluginConfig.getInt("ball-server.port", 58888),
|
||||
pluginConfig.getInt("ball-server.nio-thread", 10)
|
||||
);
|
||||
instance = new BallBukkitAPI(config);
|
||||
|
||||
|
Reference in New Issue
Block a user