A Velocity server plugin that provides a simple command for players to teleport to the lobby server using /hub, /lobby,
Velocity Lobby Command
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
Create a version tag (without 'v' prefix):
git tag 1.1.0 git push origin 1.1.0
GitHub Actions automatically:
- Builds the plugin
- Creates a GitHub Release
- Uploads the JAR file for download
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
- Copy the
velocity-lobby-command-1.0.0.jar
file to your Velocity server'splugins/
directory - Restart your Velocity server
- 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
"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
- Check that your lobby server is configured in
"Lobby server is offline"
- Check if your lobby server is actually running
- Verify the server address and port in
velocity.toml
- Check firewall settings
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
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- 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:
- Check the troubleshooting section above
- Review the server console logs
- Open an issue on the project repository
- Contact the development team
Information
Category | Gameplay |
---|---|
Published on | August 15, 2025 |
License | Public Domain |
Downloads | 0 |
Stars | 0 |
Watchers | 0 |