Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(commands): Add commands to easily manage games #3

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

cizetux
Copy link
Collaborator

@cizetux cizetux commented Mar 30, 2024

TODO

@cizetux cizetux added the enhancement New feature or request label Mar 30, 2024
@cizetux cizetux requested a review from Quentixx March 30, 2024 14:56
@cizetux cizetux self-assigned this Mar 30, 2024

withArguments(IntegerArgument("game"))

subcommand("create") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'create' subcommand is not permission secured.

} else {
plugin.launch {

game = games.createAndSave(gameIndex)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'spectate' subcommand is not correct because it re-creates an already existing game. You can delete this line.
This means that it will be necessary to review the game creation logic from the main Hub menu.

@Quentixx
Copy link
Contributor

Quentixx commented Apr 4, 2024

Each command permission should also follow a consistent structure like: rtf.command.[sub_command_here]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants