Skip to content

Hub Command not checking "You are already connected" properly #1011

Closed

Description

@expxx

Expected Behavior

The players should be connected to the fallback server in order of the "try" list.

Actual Behavior

At this location, the code just checks if the server the player is connected to is contained within the servers to attempt, not if the next server to check is the current server.

Steps to Reproduce

  1. Add 2 servers to your "try" category, and be connected to one of them. For example, "limbo" and "main".
  2. Attempt to use "/hub" from the 2nd server in the "try" list
  3. Observe it dies because you're currently connected to a server in the "try" list.

Plugin List

Image

Velocity-CTD Version

Image

Additional Information

No response

Activity

  1. WouterGritter commented on Jul 30, 2026

    @WouterGritter
    Collaborator

    Would the feature proposed in #1025 work for you?

  2. expxx commented on Jul 31, 2026

    @expxx
    Author

    That would work, yeah. I just went ahead and forked it CortisSMP@178005c here

  3. WouterGritter commented on Aug 2, 2026

    @WouterGritter
    Collaborator

    That would work, yeah. I just went ahead and forked it CortisSMP@178005c here

    Cool. The referenced PR wouldn't be a drop-in replacement, you'd need to make sure to configure the new hub-servers list correctly.

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

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