Skip to content

Fix cooldown incorrectly applying to failed queue attempts#40

Open
daniel-skopek wants to merge 2 commits into
ajgeiss0702:masterfrom
daniel-skopek:master
Open

Fix cooldown incorrectly applying to failed queue attempts#40
daniel-skopek wants to merge 2 commits into
ajgeiss0702:masterfrom
daniel-skopek:master

Conversation

@daniel-skopek

@daniel-skopek daniel-skopek commented Jul 5, 2026

Copy link
Copy Markdown

Problem

The queue command cooldown was stored before the queue was validated. Any
failed attempt (e.g. queueing to a non-existent server, which shows
errors.server-not-exist) still started the cooldown, so the next command
wrongly showed errors.too-fast-queue.

Changes

  • QueueCommand: only store the cooldown when addToQueue actually succeeds.
    Permission failures no longer trigger the cooldown either.
  • EventHandlerImpl: guard against an NPE in onServerKick when findPlayer
    returns null (player removed from queue between lookups).

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.

1 participant