Skip to content

Command handler fixes#18

Merged
zNotChill merged 7 commits intomainfrom
command-handler-fixes
Mar 15, 2025
Merged

Command handler fixes#18
zNotChill merged 7 commits intomainfrom
command-handler-fixes

Conversation

@zNotChill
Copy link
Contributor

This PR adds/fixes:

  1. Usage and permission messages now use correct color formatting (§ -> &)
  2. Custom permission messages
  3. A global message formatter (inside MessageFormatter)
  4. A new locale string no_permission

for some reason the command execution doesn't go through the commandReference.executor even though it should, which means none of this works.
odd. will try to fix tomorrow I guess
Still needs polishing, aliases need adding too. Gotta sleep though
@zNotChill zNotChill assigned zNotChill and unassigned zNotChill Mar 13, 2025
@github-actions
Copy link

github-actions bot commented Mar 13, 2025

Qodana Community for JVM

9 new problems were found

Inspection name Severity Problems
Unused import directive 🔶 Warning 3
Unused symbol 🔶 Warning 3
Control flow with empty body 🔶 Warning 2
Class member can have 'private' visibility ◽️ Notice 1

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@gibbiemonster gibbiemonster requested a review from Copilot March 13, 2025 23:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes command handler messages by correcting color formatting and adding a new custom permission message along with a global message formatter.

  • Fixed usage and permission messages to use the correct color formatting symbol.
  • Added a custom permission message entry in the locale file ("no_permission").

Copy link
Contributor

@gibbiemonster gibbiemonster left a comment

Choose a reason for hiding this comment

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

LGTM, but please address qodana new issues.

Before, it would always send the usage message, but now there is an argCount, it works *mostly* as intended.

Also updated the en_GB locale
Copy link
Contributor

@gibbiemonster gibbiemonster left a comment

Choose a reason for hiding this comment

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

Nitpicking 🙂
LGTM.

@zNotChill zNotChill merged commit a58cdb6 into main Mar 15, 2025
3 checks passed
@cerqiest cerqiest deleted the command-handler-fixes branch April 19, 2025 16:53
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.

2 participants