Changed updateUserPoints to void because the boolean is never used anyways
This commit is contained in:
parent
3672ff0e5e
commit
317c294599
|
|
@ -1,7 +1,6 @@
|
||||||
package com.alttd.database;
|
package com.alttd.database;
|
||||||
|
|
||||||
import com.alttd.objects.EconUser;
|
import com.alttd.objects.EconUser;
|
||||||
import com.alttd.objects.VillagerType;
|
|
||||||
import com.alttd.util.Logger;
|
import com.alttd.util.Logger;
|
||||||
import it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap;
|
import it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap;
|
||||||
|
|
||||||
|
|
@ -20,9 +19,8 @@ public class Queries {
|
||||||
*
|
*
|
||||||
* @param uuid Uuid for the user you want to add the points to
|
* @param uuid Uuid for the user you want to add the points to
|
||||||
* @param pointsMap Contains all (villagerType, points) entries for user
|
* @param pointsMap Contains all (villagerType, points) entries for user
|
||||||
* @return success
|
|
||||||
*/
|
*/
|
||||||
public static boolean updateUserPoints(UUID uuid, Object2ObjectArrayMap<String, Integer> pointsMap) {
|
public static void updateUserPoints(UUID uuid, Object2ObjectArrayMap<String, Integer> pointsMap) {
|
||||||
String sql = "INSERT INTO user_points " +
|
String sql = "INSERT INTO user_points " +
|
||||||
"(uuid, villager_type, points) " +
|
"(uuid, villager_type, points) " +
|
||||||
"VALUES (?, ?, ?) " +
|
"VALUES (?, ?, ?) " +
|
||||||
|
|
@ -46,10 +44,9 @@ public class Queries {
|
||||||
preparedStatement.execute();
|
preparedStatement.execute();
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return (false);
|
return;
|
||||||
}
|
}
|
||||||
setLastUpdated(uuid);
|
setLastUpdated(uuid);
|
||||||
return (true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user