You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose and filter player-kill victims in the typed API - #1062
entityLookup() exposes the actor and entity type but drops the victim ID already stored in block.data for player kills. A caller therefore cannot query which player was killed or page through kills of a particular victim.
This adds EntityResult.getVictim() and LookupOptions.victims() / excludeVictims(). Victim filters are applied in SQL before pagination and combine with existing actor, time, location and entity filters. For example, .users(List.of("Killer")).victims(List.of("Victim")) selects kills of Victim by Killer.
The existing result constructor remains available. Mob kills, spawns and unresolvable victim IDs return a null victim; exclusions retain those events. Unknown inclusion names match nothing, names are resolved through the existing case-insensitive user lookup, and no users or history records are created. No schema or logging configuration changes are needed. API documentation and regression tests are included.
Validation:
Java 25: mvn -q -DskipTests=false verify passed; 14 tests passed using real SQLite and DuckDB JDBC databases.
Isolated MySQL 8.4.11: 8 checks passed, including actor/victim filtering, pagination and null/invalid records.
Isolated ClickHouse 26.8.37.168: 16 SQL-level checks passed against nullable columns and signed/unsigned ID types. This was not a full ClickHouse plugin/API integration run.
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
entityLookup()exposes the actor and entity type but drops the victim ID already stored inblock.datafor player kills. A caller therefore cannot query which player was killed or page through kills of a particular victim.This adds
EntityResult.getVictim()andLookupOptions.victims()/excludeVictims(). Victim filters are applied in SQL before pagination and combine with existing actor, time, location and entity filters. For example,.users(List.of("Killer")).victims(List.of("Victim"))selects kills of Victim by Killer.The existing result constructor remains available. Mob kills, spawns and unresolvable victim IDs return a null victim; exclusions retain those events. Unknown inclusion names match nothing, names are resolved through the existing case-insensitive user lookup, and no users or history records are created. No schema or logging configuration changes are needed. API documentation and regression tests are included.
Validation:
mvn -q -DskipTests=false verifypassed; 14 tests passed using real SQLite and DuckDB JDBC databases.Refs #1061.