feat: 适配API更新
This commit is contained in:
@@ -2,5 +2,5 @@ version = '1.0.0'
|
||||
setArchivesBaseName("HamsterAuto-ServerInfo")
|
||||
|
||||
dependencies {
|
||||
compileOnly "cn.hamster3.mc.plugin.ball:common:${hamster_ball_version}"
|
||||
compileOnly "cn.hamster3.mc.plugin:ball-common:${hamster_ball_version}"
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ public class ServerInfoPlugin extends Plugin implements BallListener {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
ProxyServer.getInstance().getServers().clear();
|
||||
getLogger().info("已清除配置文件中子服接入点配置.");
|
||||
for (BallServerInfo serverInfo : BallAPI.getInstance().getAllServerInfo().values()) {
|
||||
if (serverInfo.getType() != BallServerType.GAME) {
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user