Skip to content

[Feature] Add quantity filter for container and item lookups #812

@AgusNicco

Description

@AgusNicco

Add support for a qty: lookup flag that filters container or item events by per-event item quantity (e.g., only show entries where amount >= 64).

Use Case
Server moderators often need to identify suspicious large chest deposits or mass item moves.
Currently, /co l a:container i:diamond shows every transaction, even single items, which floods the output.
A qty: filter would make moderation and dupe investigation faster.

Example Command
/co l a:container i:diamond qty:>=64 t:24h
→ shows only container transactions where the logged amount is >= 64.

Minimal Scope:

  • Applies only to container and item actions (where an amount field exists).
  • Adds one simple SQL predicate (AND amount >= ?) with no schema changes.
  • Does not change default lookup behavior.

Minimal or negligible performance impact
Filtering by amount is low-cost, the lookup already filters by time/action/world/item first.
This just adds a single numeric comparison to the existing query.

Implementation Notes

  • Parser: accept qty:(>|>=|=|<=|<)N.
  • Validation: only valid for container/item actions.
  • Docs: add a short note in /co help lookup.

I can implement the feature and make a pull request if you guys like the idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions