Skip to content

Add autocomplete to /ahs, /bzs, & /bz#2378

Open
LJNeon wants to merge 2 commits into
SkyblockerMod:mainfrom
LJNeon:auction-bazaar-search
Open

Add autocomplete to /ahs, /bzs, & /bz#2378
LJNeon wants to merge 2 commits into
SkyblockerMod:mainfrom
LJNeon:auction-bazaar-search

Conversation

@LJNeon

@LJNeon LJNeon commented May 9, 2026

Copy link
Copy Markdown
Contributor

See title, CallAutocomplete was used as a reference. Also fixes two related bugs:

  1. The search overlay opened on /ahs but not /ahsearch.
  2. /ahs, /ahsearch, & /bzs all worked even when not playing skyblock.

Note: Auction House autocomplete doesn't seem to fully match the search overlay? (see the last test for an example, autocomplete has "Bunny" and "Bunny Jerry" but the search overlay doesn't)

Testing

/ahs & /ahsearch now have autocomplete image image
/bzs, /bz, & /bazaar now have autocomplete image image image
/ahs, /ahsearch, & /bzs no longer work outside of skyblock In the main lobby: image In the garden: image
/ahsearch now opens the search overlay image image

@LifeIsAParadox LifeIsAParadox added the reviews needed This PR needs reviews label May 9, 2026

@kevinthegreat1 kevinthegreat1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused, let me check with others.

Comment on lines -92 to -95
dispatcher.register(literal("ahs").executes(_ -> startCommand(true, "")));
dispatcher.register(literal("bzs").executes(_ -> startCommand(false, "")));

dispatcher.register(literal("ahs").then(argument("item", StringArgumentType.greedyString())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to look into this more but some of these are hypixel commands, which would spam the logs? Idk what the old code is doing here tbh.

Either way, commands that are hypixel shouldn't be here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite sure what you mean here.

case String s when s.equals("ahs") && AuctionBazaarAutocomplete.ahsNode != null -> AuctionBazaarAutocomplete.ahsNode;
case String s when s.equals("ahsearch") && AuctionBazaarAutocomplete.ahsearchNode != null -> AuctionBazaarAutocomplete.ahsearchNode;
case String s when s.equals("bz") && AuctionBazaarAutocomplete.bzNode != null -> AuctionBazaarAutocomplete.bzNode;
case String s when s.equals("bazaar") && AuctionBazaarAutocomplete.bazaarNode != null -> AuctionBazaarAutocomplete.bazaarNode;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like some of these commands are our own? For the ones that are our own we don't need to do this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of those are our own, the only one that's our own in this PR is /bzs which is already not included there (and has its own handling elsewhere).

@LJNeon LJNeon force-pushed the auction-bazaar-search branch from cb2bd20 to acb3a04 Compare May 18, 2026 02:12
@LJNeon LJNeon force-pushed the auction-bazaar-search branch from acb3a04 to 816f130 Compare May 29, 2026 17:05
@LJNeon LJNeon force-pushed the auction-bazaar-search branch from 816f130 to ebc7406 Compare June 3, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviews needed This PR needs reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants