Skip to content

fix: add /title command support#16

Merged
zardoy merged 1 commit intozardoy:everythingfrom
m4cd4r4:fix/issuehunt-5
Mar 25, 2026
Merged

fix: add /title command support#16
zardoy merged 1 commit intozardoy:everythingfrom
m4cd4r4:fix/issuehunt-5

Conversation

@m4cd4r4
Copy link
Copy Markdown

@m4cd4r4 m4cd4r4 commented Mar 25, 2026

Fixes #5

Changes

  • commands.ts: Remove broken duplicate /title implementation (broken regex, wrong packet calls)
  • title.ts: Fix pre-1.17 action codes - send times packet (action 3) separately before title/subtitle, fix clearTitle to use reset: false, add resetTitle with action 5
  • players.ts: Differentiate clear vs reset actions, fix actionbar case normalisation

IssueHunt

Resolves bounty: https://oss.issuehunt.io/r/zardoy/space-squid/issues/5

Fixes zardoy#5

- Remove broken duplicate /title implementation from commands.ts
- Fix pre-1.17 action codes in title.ts (action 3 for times, separate packets)
- Add resetTitle function (action 5) distinct from clearTitle (action 4)
- Fix clearTitle to use reset: false on new protocol
- Differentiate clear vs reset behaviour in players.ts
@zardoy zardoy merged commit 5126a3b into zardoy:everything Mar 25, 2026
@zardoy
Copy link
Copy Markdown
Owner

zardoy commented Mar 25, 2026

You did t submit the pr on issuehunt btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for /title

2 participants