Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Jannik-Schroeder

A Velocity server plugin that provides a simple command for players to teleport to the lobby server using /hub, /lobby,

Report velocity-lobby-command?

Velocity Lobby Command

Release Status CI Status Code Quality

A Velocity server plugin that provides a simple command for players to teleport to the lobby server using /hub, /lobby, and /l commands.

Features

  • Multiple Commands: Players can use /hub, /lobby, or /l to teleport to the lobby
  • Smart Teleportation: Automatically detects if the player is already on the lobby server
  • Server Status Check: Verifies lobby server availability before attempting connection
  • Configurable: Easy to customize server names and messages
  • Logging: Comprehensive logging for debugging and monitoring

Requirements

  • Velocity: 3.4.0 or higher
  • Java: 17 or higher
  • Maven: For building the plugin

πŸš€ GitHub Actions & Automation

Automatic Releases

This project uses GitHub Actions to automatically build and release the plugin:

  • .github/workflows/simple-release.yml - Creates releases when you create version tags
  • .github/workflows/ci.yml - Runs tests and quality checks on every push
  • .github/workflows/quality.yml - Weekly code quality and security scans
  • .github/workflows/publish.yml - Automatically publishes to PaperMC Hangar

PaperMC Hangar Integration

This plugin is automatically published to PaperMC Hangar on every commit to the main branch.

Features:

  • βœ… Auto-publishing to Hangar on every commit
  • βœ… Snapshot channel for development builds
  • βœ… Velocity platform support
  • βœ… Version compatibility with Velocity 3.4.0+

How to Create a Release

  1. Create a version tag (without 'v' prefix):

    git tag 1.1.0
    git push origin 1.1.0
    
  2. GitHub Actions automatically:

    • Builds the plugin
    • Creates a GitHub Release
    • Uploads the JAR file for download
  3. Users can download directly from the Releases tab without building

Installation

1. Build the Plugin

# Clone the repository
git clone https://github.com/Jannik-Schroeder/velocity-lobby-command.git
cd velocity-lobby-command

# Build with Maven
mvn clean package

The compiled plugin will be in the target/ directory as velocity-lobby-command-1.0.0.jar.

2. Install on Velocity Server

  1. Copy the velocity-lobby-command-1.0.0.jar file to your Velocity server's plugins/ directory
  2. Restart your Velocity server
  3. The plugin will automatically load and register the commands

3. Configure Your Lobby Server

Make sure you have a lobby server configured in your velocity.toml file:

[servers]
lobby = "127.0.0.1:25566"  # Your lobby server address

Configuration

The plugin creates a config.yml file in the plugins/velocity-lobby-command/ directory after first run.

Main Configuration

# The name of your lobby server as configured in velocity.toml
lobby-server-name: "lobby"

# Messages configuration
messages:
  already-on-lobby: "&eYou are already on the lobby server!"
  connecting: "&aConnecting to lobby..."
  server-offline: "&cLobby server is offline!"
  server-unavailable: "&cLobby server is not available!"
  connection-failed: "&cFailed to connect to lobby server!"
  players-only: "&cThis command can only be used by players!"

# Command configuration
commands:
  hub-enabled: true
  lobby-enabled: true
  l-enabled: true

Customizing Messages

You can customize all messages using color codes:

  • &a = Green
  • &c = Red
  • &e = Yellow
  • &f = White
  • &b = Aqua
  • &d = Light Purple

Usage

Commands

Players can use any of these commands to teleport to the lobby:

  • /hub - Teleport to lobby
  • /lobby - Teleport to lobby
  • /l - Teleport to lobby (short version)

Permissions

By default, all players can use these commands. If you want to restrict access, you can modify the hasPermission method in the LobbyCommand class.

Troubleshooting

Common Issues

  1. "Lobby server is not available"

    • Check that your lobby server is configured in velocity.toml
    • Ensure the server name matches exactly (case-sensitive)
    • Verify the lobby server is running
  2. "Lobby server is offline"

    • Check if your lobby server is actually running
    • Verify the server address and port in velocity.toml
    • Check firewall settings
  3. Plugin not loading

    • Ensure you're using Velocity 3.4.0+ and Java 17+
    • Check the server console for error messages
    • Verify the plugin JAR is in the correct directory

Logs

The plugin logs all activities to the Velocity server console:

  • Player connections to lobby
  • Failed connection attempts
  • Server availability issues

Development

Building from Source

# Clone the repository
git clone https://github.com/Jannik-Schroeder/velocity-lobby-command.git
cd velocity-lobby-command

# Build the project
mvn clean package

# Run tests (if any)
mvn test

Project Structure

src/
β”œβ”€β”€ main/
β”‚   β”œβ”€β”€ java/
β”‚   β”‚   └── me/jsde/velocitylobby/
β”‚   β”‚       β”œβ”€β”€ VelocityLobbyPlugin.java    # Main plugin class
β”‚   β”‚       └── LobbyCommand.java           # Command executor
β”‚   └── resources/
β”‚       β”œβ”€β”€ velocity-plugin.json            # Plugin metadata
β”‚       └── config.yml                      # Default configuration
pom.xml                                     # Maven configuration
README.md                                   # This file

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

License

This project is dedicated to the Public Domain. You are free to use, modify, distribute, and commercialize this software without any restrictions or attribution requirements.

See the LICENSE file for details.

Support

If you encounter any issues or have questions:

  1. Check the troubleshooting section above
  2. Review the server console logs
  3. Open an issue on the project repository
  4. Contact the development team

Information

CategoryGameplay
Published onAugust 15, 2025
LicensePublic Domain
Downloads0
Stars0
Watchers0

Pinned Versions

Members