mirror of
https://github.com/GeyserMC/GeyserConnect.git
synced 2025-06-26 14:15:22 +02:00
fix mysql
This commit is contained in:
parent
b84ae2ae75
commit
e5a6cbfb33
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ public abstract class AbstractSQLStorageManager extends AbstractStorageManager {
|
|||
|
||||
@Override
|
||||
public void saveServers(Player player) {
|
||||
try (PreparedStatement updatePlayersServers = connection.prepareStatement("INSERT OR REPLACE INTO players(xuid, servers) VALUES(?, ?)")) {
|
||||
// replace into works on MySQL and SQLite
|
||||
try (PreparedStatement updatePlayersServers = connection.prepareStatement("REPLACE INTO players(xuid, servers) VALUES(?, ?)")) {
|
||||
updatePlayersServers.setString(1, player.getAuthData().xuid());
|
||||
updatePlayersServers.setString(2, mapper.writeValueAsString(player.getServers()));
|
||||
updatePlayersServers.executeUpdate();
|
||||
|
|
Loading…
Add table
Reference in a new issue