Fix database operations

This commit is contained in:
Kyoukawa Meishin 2025-10-16 20:05:02 +08:00
parent 16c5993faf
commit 2c9de875c8

View File

@ -74,7 +74,7 @@ public class CheckinCommand implements CommandExecutor {
ps.close();
} else {
ps = plugin.getConnection().prepareStatement(
"INSERT INTO checkins(uuid,last_checkin,streak,total_checkin) VALUES(?,?,?,?)");
"INSERT INTO checkins(last_checkin,streak,total_checkin,uuid) VALUES(?,?,?,?)");
ps.setLong(1, today.atStartOfDay(ZoneId.systemDefault()).toInstant().toEpochMilli());
ps.setInt(2, 1);
ps.setInt(3, 1);