feat: 适配API更新

This commit is contained in:
2023-06-17 02:20:59 +08:00
parent 96c36c6187
commit 7439bfe0ea
14 changed files with 21 additions and 20 deletions

View File

@@ -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}"
}

View File

@@ -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;