mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 03:30:10 +00:00
Merge pull request #96 from jedk1/master
Quick Database name change fix
This commit is contained in:
commit
b252fa98d8
1 changed files with 5 additions and 2 deletions
|
@ -371,7 +371,10 @@ public class Methods {
|
|||
} else {
|
||||
// The player has at least played before.
|
||||
String player2 = rs2.getString("player");
|
||||
if (!player.equalsIgnoreCase(player2)) DBConnection.sql.modifyQuery("UPDATE pk_players SET player = '" + player2 + "' WHERE uuid = '" + uuid.toString() + "'"); // They have changed names.
|
||||
if (!player.equalsIgnoreCase(player2)){
|
||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET player = '" + player + "' WHERE uuid = '" + uuid.toString() + "'"); // They have changed names.
|
||||
ProjectKorra.log.info("Updating Player Name for " + player);
|
||||
}
|
||||
String element = rs2.getString("element");
|
||||
String permaremoved = rs2.getString("permaremoved");
|
||||
boolean p = false;
|
||||
|
@ -400,7 +403,7 @@ public class Methods {
|
|||
p = false;
|
||||
}
|
||||
|
||||
new BendingPlayer(uuid, player2, elements, abilities, p);
|
||||
new BendingPlayer(uuid, player, elements, abilities, p);
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
ex.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue