fix -> tried to update on wrong table

This commit is contained in:
Peda 2020-12-29 11:51:35 +01:00
parent 07d1e3803f
commit e97c827ddc

View File

@ -44,10 +44,10 @@ public class PlayerWrapper {
return;
Preconditions.checkNotNull(player);
String playersTableName = PluginConfig.getPlayersTableName();
String uuidTableName = PluginConfig.getUUIDTableName();
try {
PreparedStatement ps = util.prepareStatement("REPLACE INTO " + playersTableName +
PreparedStatement ps = util.prepareStatement("REPLACE INTO " + uuidTableName +
" (uuid, name) VALUES (?, ?)");
ps.setString(1, player.getUniqueId().toString());
ps.setString(2, player.getName());