Removed UsersTable#updateKicked

This commit is contained in:
Rsl1122 2019-01-25 12:07:04 +02:00
parent 35c9caf59a
commit f48b45ccb2
2 changed files with 0 additions and 22 deletions

View File

@ -277,27 +277,6 @@ public class UsersTable extends Table {
});
}
public void updateKicked(Map<UUID, Integer> timesKicked) {
if (Verify.isEmpty(timesKicked)) {
return;
}
String sql = "UPDATE " + tableName + " SET " + TIMES_KICKED + "=? WHERE " + USER_UUID + "=?";
executeBatch(new ExecStatement(sql) {
@Override
public void prepare(PreparedStatement statement) throws SQLException {
for (Map.Entry<UUID, Integer> entry : timesKicked.entrySet()) {
UUID uuid = entry.getKey();
int kickCount = entry.getValue();
statement.setInt(1, kickCount);
statement.setString(2, uuid.toString());
statement.addBatch();
}
}
});
}
public Map<UUID, Integer> getAllTimesKicked() {
String sql = Select.from(tableName, USER_UUID, TIMES_KICKED).toString();

View File

@ -83,7 +83,6 @@ public class SQLSaveOps extends SQLOps implements SaveOperations {
@Override
public void kickAmount(Map<UUID, Integer> ofUsers) {
usersTable.updateKicked(ofUsers);
}
@Override