Fixed never getting users from the database (I don't think we're adding them yet but that's for another time :)))) (im gonna forget and be confused for sure)

This commit is contained in:
auto committed 2021-12-18 01:34:42 +01:00
1 parent 3ccd198b9e
commit c780054f24
5 files changed
+17 -8

No files matched your search

@@ -81,7 +81,7 @@ public class Queries {
* @return success
*/
public static boolean createUserPointsEntry(UUID uuid, String villagerType, int points) {
String sql = "INSERT INTO Points " +
String sql = "INSERT INTO user_points " +
"(uuid, villager_type, points) " +
"(?, ?, ?)";
@@ -101,7 +101,7 @@ public class Queries {
}
public static EconUser getEconUser(UUID uuid) {
String sql = "SELECT * FROM POINTS WHERE uuid = ?";
String sql = "SELECT * FROM user_points WHERE uuid = ?";
try {
PreparedStatement preparedStatement = Database.connection.prepareStatement(sql);