Skip to content

Add /hub and /lobby commands to switch lobbies#5

Merged
kmaba merged 1 commit intomainfrom
add-hub-lobby-commands
Feb 1, 2025
Merged

Add /hub and /lobby commands to switch lobbies#5
kmaba merged 1 commit intomainfrom
add-hub-lobby-commands

Conversation

@kmaba
Copy link
Owner

@kmaba kmaba commented Feb 1, 2025

Add /hub and /lobby commands to the plugin to allow users to switch between lobbies.

  • Command Implementation:
    • Add HubCommand.java and LobbyCommand.java to handle /hub and /lobby commands respectively.
    • Implement execute method in both classes to handle command execution, validate lobby names, and switch players to target lobbies.
  • Command Registration:
    • Register /hub and /lobby commands in VelocityPlugin.java.
  • Error Handling:
    • Add error handling in command handlers for invalid lobby names.
  • Player Disconnection Handling:
    • Add a listener for player disconnection events in VelocityPlugin.java.
  • Documentation:
    • Update README.md to include instructions on how to use the /hub and /lobby commands.
  • Build Configuration:
    • Add toolchain download repositories in build.gradle.kts.
    • Ensure Java toolchain is configured correctly for Java 17.
  • Version Update:
    • Change the version of the plugin to 1.2.0 in gradle.properties.

Add `/hub` and `/lobby` commands to the plugin to allow users to switch between lobbies.

* **Command Implementation:**
  - Add `HubCommand.java` and `LobbyCommand.java` to handle `/hub` and `/lobby` commands respectively.
  - Implement `execute` method in both classes to handle command execution, validate lobby names, and switch players to target lobbies.
* **Command Registration:**
  - Register `/hub` and `/lobby` commands in `VelocityPlugin.java`.
* **Error Handling:**
  - Add error handling in command handlers for invalid lobby names.
* **Player Disconnection Handling:**
  - Add a listener for player disconnection events in `VelocityPlugin.java`.
* **Documentation:**
  - Update `README.md` to include instructions on how to use the `/hub` and `/lobby` commands.
* **Build Configuration:**
  - Add toolchain download repositories in `build.gradle.kts`.
  - Ensure Java toolchain is configured correctly for Java 17.
* **Version Update:**
  - Change the version of the plugin to 1.2.0 in `gradle.properties`.
@kmaba kmaba merged commit 2d3683e into main Feb 1, 2025
1 check failed
@kmaba kmaba deleted the add-hub-lobby-commands branch February 1, 2025 09:21
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