mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Removed WorldTable#getWorldNames
This commit is contained in:
parent
a548ae6cf6
commit
35d5db638d
@ -126,26 +126,6 @@ public class WorldTable extends Table {
|
||||
});
|
||||
}
|
||||
|
||||
public Set<String> getWorldNames(UUID serverUUID) {
|
||||
String sql = "SELECT DISTINCT " + NAME + " FROM " + tableName +
|
||||
" WHERE " + SERVER_UUID + "=?";
|
||||
return query(new QueryStatement<Set<String>>(sql, 100) {
|
||||
@Override
|
||||
public void prepare(PreparedStatement statement) throws SQLException {
|
||||
statement.setString(1, serverUUID.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<String> processResults(ResultSet set) throws SQLException {
|
||||
Set<String> worldNames = new HashSet<>();
|
||||
while (set.next()) {
|
||||
worldNames.add(set.getString(NAME));
|
||||
}
|
||||
return worldNames;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user