feat: 优化结构

This commit is contained in:
2023-11-12 17:45:45 +08:00
parent b52685e94c
commit 4d4413811e
2 changed files with 13 additions and 15 deletions

View File

@@ -38,11 +38,11 @@ public class PlaceholderHook extends PlaceholderExpansion {
return BallAPI.getInstance().getLocalServerInfo().getName();
}
case "proxy_id": {
return BallAPI.getInstance().getAllPlayerInfo(player.getUniqueId()).getProxyServer();
return BallAPI.getInstance().getPlayerInfo(player.getUniqueId()).getProxyServer();
}
case "proxy_name": {
String id = BallAPI.getInstance().getAllPlayerInfo(player.getUniqueId()).getProxyServer();
return BallAPI.getInstance().getAllServerInfo(id).getName();
String id = BallAPI.getInstance().getPlayerInfo(player.getUniqueId()).getProxyServer();
return BallAPI.getInstance().getServerInfo(id).getName();
}
}
return null;