mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-18 22:24:35 +00:00
Changed 2 lines to fix the name change update.
This commit is contained in:
parent
9e8a8376f4
commit
960e3a5415
1 changed files with 2768 additions and 2768 deletions
|
@ -448,7 +448,7 @@ public class Methods {
|
||||||
} else {
|
} else {
|
||||||
// The player has at least played before.
|
// The player has at least played before.
|
||||||
String player2 = rs2.getString("player");
|
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.
|
||||||
String element = rs2.getString("element");
|
String element = rs2.getString("element");
|
||||||
String permaremoved = rs2.getString("permaremoved");
|
String permaremoved = rs2.getString("permaremoved");
|
||||||
boolean p = false;
|
boolean p = false;
|
||||||
|
@ -477,7 +477,7 @@ public class Methods {
|
||||||
p = false;
|
p = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
new BendingPlayer(uuid, player2, elements, abilities, p);
|
new BendingPlayer(uuid, player, elements, abilities, p);
|
||||||
}
|
}
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
|
|
Loading…
Reference in a new issue