feat: 优化结构

This commit is contained in:
2023-11-12 17:22:53 +08:00
parent ea38a715c7
commit b52685e94c
4 changed files with 30 additions and 30 deletions

View File

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