fix: 修复当 load-player-info-filter 有多个条目时无法加载玩家数据的问题
This commit is contained in:
@@ -51,9 +51,9 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// 对于 Bukkit 插件
|
// 对于 Bukkit 插件
|
||||||
compileOnly("cn.hamster3.mc.plugin:ball-bukkit:1.5.3")
|
compileOnly("cn.hamster3.mc.plugin:ball-bukkit:1.5.7")
|
||||||
// 对于 BungeeCord 插件
|
// 对于 BungeeCord 插件
|
||||||
compileOnly("cn.hamster3.mc.plugin:ball-bungee:1.5.3")
|
compileOnly("cn.hamster3.mc.plugin:ball-bungee:1.5.7")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -79,13 +79,13 @@ dependencies {
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.hamster3.mc.plugin</groupId>
|
<groupId>cn.hamster3.mc.plugin</groupId>
|
||||||
<artifactId>ball-bukkit</artifactId>
|
<artifactId>ball-bukkit</artifactId>
|
||||||
<version>1.5.3</version>
|
<version>1.5.7</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--对于 BungeeCord 插件-->
|
<!--对于 BungeeCord 插件-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.hamster3.mc.plugin</groupId>
|
<groupId>cn.hamster3.mc.plugin</groupId>
|
||||||
<artifactId>ball-bungee</artifactId>
|
<artifactId>ball-bungee</artifactId>
|
||||||
<version>1.5.3</version>
|
<version>1.5.7</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -128,11 +128,11 @@ public abstract class BallAPI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (getBallConfig().isGameServerUpdatePlayerInfo()) {
|
if (getBallConfig().isGameServerUpdatePlayerInfo()) {
|
||||||
try (PreparedStatement statement = connection.prepareStatement(
|
try (Statement statement = connection.createStatement()) {
|
||||||
"SELECT * FROM `hamster_ball_player_info` WHERE `proxy_server` IN (?);"
|
try (ResultSet set = statement.executeQuery(String.format(
|
||||||
)) {
|
"SELECT * FROM `hamster_ball_player_info` WHERE `proxy_server` IN ('%s');",
|
||||||
statement.setString(1, String.join(",", getBallConfig().getLoadPlayerInfoFilter()));
|
String.join("', '", getBallConfig().getLoadPlayerInfoFilter())
|
||||||
try (ResultSet set = statement.executeQuery()) {
|
))) {
|
||||||
while (set.next()) {
|
while (set.next()) {
|
||||||
UUID uuid = UUID.fromString(set.getString("uuid"));
|
UUID uuid = UUID.fromString(set.getString("uuid"));
|
||||||
allPlayerInfo.put(uuid, new BallPlayerInfo(uuid,
|
allPlayerInfo.put(uuid, new BallPlayerInfo(uuid,
|
||||||
|
@@ -5,7 +5,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "cn.hamster3.mc.plugin"
|
group = "cn.hamster3.mc.plugin"
|
||||||
version = "1.5.6"
|
version = "1.5.7"
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply {
|
apply {
|
||||||
|
Reference in New Issue
Block a user