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

Switching game modes now requires OP. Provide user feedback on command failure. #278

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

XanderStoffels
Copy link
Contributor

@XanderStoffels XanderStoffels commented Sep 15, 2022

Addresses point 2 in #270.

While trying to fix this, I encountered a todo and gave it a shot:
// A check failed. // TODO: Tell user what arg failed?

Instead of printing the CommandExecutionCheckException to console, exceptions inheriting CommandExecutionCheckException will now get caught and can provide feedback to the command executor if applicable.

Copy link
Member

@Naamloos Naamloos left a comment

Choose a reason for hiding this comment

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

Honestly I don't see anything wrong with this. Thank you for your first contribution to the project! :)

@Naamloos Naamloos added enhancement New feature or request epic Very cool commands Relates to Obsidian.Commands labels Sep 15, 2022
@Craftplacer Craftplacer merged commit c9e6e9b into ObsidianMC:master Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commands Relates to Obsidian.Commands enhancement New feature or request epic Very cool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants