Add /hub and /lobby commands to switch lobbies#5
Merged
Conversation
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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
/huband/lobbycommands to the plugin to allow users to switch between lobbies.HubCommand.javaandLobbyCommand.javato handle/huband/lobbycommands respectively.executemethod in both classes to handle command execution, validate lobby names, and switch players to target lobbies./huband/lobbycommands inVelocityPlugin.java.VelocityPlugin.java.README.mdto include instructions on how to use the/huband/lobbycommands.build.gradle.kts.gradle.properties.